When creating a library for a simple program, what must I do to protect others from its lack of thread safety?
- by DeveloperDon
When creating a library for a simple program, is it more cost effective to make it thread safe or is there a way to detect the program's use in a multithreaded program and ASSERT() or otherwise determine (preferably at compile or link time) that it may create problems.
Related help for this question would be automated tool support for finding potential problems with thread safety, programming language features that enforce it,