Manfred Spraul wrote:

Wrong. There are portable test-and-set functions in the Win32 SDK: for example InterlockedCompareExchange. They operate on ints and do not need initialization.

'k, missed that one. Lets use it.

There is a third option: Add one C++ file and use the constructor to initialize the mutex. VisualC is always a C++ compiler, thus C++ support shouldn't be an issue.

Our code is potentially not only VC.


---------------------------(end of broadcast)--------------------------- TIP 6: Have you searched our list archives?

Reply via email to