RAD Studio
ContentsIndex
PreviousUpNext
W8104: Local Static with constructor dangerous for multi-threaded apps (C++)

(Command-line option to suppress warning: -w-mls) 

This warning is generated for local static objects with constructors for multithreaded programs. This situation can cause problems if two threads enter the containing function at the same time and no critical sections are present, allowing the constructor to potentially be called more than once.

Copyright(C) 2009 Embarcadero Technologies, Inc. All Rights Reserved.
What do you think about this topic? Send feedback!