Talk:Mutex: Difference between revisions
Content added Content deleted
(need more code) |
(Win32 API CRITICAL_SECTION) |
||
Line 1: | Line 1: | ||
I added some C/C++ code for the Win32 API. My reasoning is that--parallelization algorithms aside--how to access synchronization objects in a language is becoming almost as important as that language's conditional and loop processing facilities. I think code should be offered for other languages (and APIs...I don't know how to do it in pthreads or C++0x) as well.--[[User:Short Circuit|Short Circuit]] 04:57, 3 November 2008 (UTC) |
I added some C/C++ code for the Win32 API. My reasoning is that--parallelization algorithms aside--how to access synchronization objects in a language is becoming almost as important as that language's conditional and loop processing facilities. I think code should be offered for other languages (and APIs...I don't know how to do it in pthreads or C++0x) as well.--[[User:Short Circuit|Short Circuit]] 04:57, 3 November 2008 (UTC) |
||
: With Win32 API CRITICAL_SECTION objects are often used as local mutexes, non-reentrant, if I correctly remember. They are less heavy weighted than mutex objects, which can serve as global mutexes. --[[User:Dmitry-kazakov|Dmitry-kazakov]] 09:25, 3 November 2008 (UTC) |
Revision as of 09:25, 3 November 2008
I added some C/C++ code for the Win32 API. My reasoning is that--parallelization algorithms aside--how to access synchronization objects in a language is becoming almost as important as that language's conditional and loop processing facilities. I think code should be offered for other languages (and APIs...I don't know how to do it in pthreads or C++0x) as well.--Short Circuit 04:57, 3 November 2008 (UTC)
- With Win32 API CRITICAL_SECTION objects are often used as local mutexes, non-reentrant, if I correctly remember. They are less heavy weighted than mutex objects, which can serve as global mutexes. --Dmitry-kazakov 09:25, 3 November 2008 (UTC)