Home |
RTKernel-32 Programming Manual Multitasking, Real-Time, and RTKernel-32 Alternate APIs for RTKernel-32 RTKernel-C 4.5 for DOS Compatible API Win32 and RTKernel-32 Error Handling Mixing RTKernel-32 and Win32 APIs Function InitializeCriticalSection Function InitializeCriticalSectionAndSpinCount Function TryEnterCriticalSection Function DeleteCriticalSection Function WaitForMultipleObjects Function QueryPerformanceCounter Function QueryPerformanceFrequency Function GetSystemTimeAdjustment Function SetThreadAffinityMask Function SetThreadGroupAffinity |
Function InitializeCriticalSectionDepending on flag RF_WIN32CS_MUTEX set in RTKConfig.Flags, InitializeCriticalSection creates an RTKernel-32 counting or mutex semaphore and associates it with the critical section object passed as the parameter. If RTKConfig flag RF_NAMED_WIN32CS is set (which it is by default), the semaphore is assigned a uniquely allocated name in the format "W32 CS address", where address is the hexadecimal address of the critical section object. If RF_NAMED_WIN32CS is not set, all Win32 critical section semaphores get the same name "Win32 CS", which reduces the memory requirement of each critical section by 16 bytes. Under RTKernel-32, calling InitializeCriticalSection is optional. Functions EnterCriticalSection and TryEnterCriticalSection will implicitly call InitializeCriticalSection if an uninitialized critical section is supplied as a parameter (that is, a structure with all fields set to zero). Function InitializeCriticalSectionAndSpinCount
|