Thread safety header files