[Implemented] Add support for Win32 critical sections
Posted: Sat Nov 05, 2016 10:15 pm
On Linux and OSX, POSIX mutexes act as critical sections, but on Windows they have additional kernel overhead as they can be shared between processes.
It would be nice if PureBasic could add support for the "critical section" idiom to wrap Win32 functionality and default back to mutexes on other OSs. I am currently using a #CompilerIf but it would be nice if this were abstracted away for me.
It would be nice if PureBasic could add support for the "critical section" idiom to wrap Win32 functionality and default back to mutexes on other OSs. I am currently using a #CompilerIf but it would be nice if this were abstracted away for me.