When creating a library for a simple program, what must I do to protect others from its lack of thread safety?
        Posted  
        
            by 
                DeveloperDon
            
        on Programmers
        
        See other posts from Programmers
        
            or by DeveloperDon
        
        
        
        Published on 2012-09-14T16:20:55Z
        Indexed on 
            2012/09/14
            21:48 UTC
        
        
        Read the original article
        Hit count: 263
        
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,
© Programmers or respective owner