#include <stdio.h>
#include <limits.h>
#include <windows.h>
#include "libComAPI.h"
#include "epicsMutex.h"
#include "epicsAssert.h"
#include "epicsStdio.h"
Go to the source code of this file.
#define _WIN32_WINNT 0x0400 |
The following are interfaces to the OS dependent implementation and should NOT be called directly by user code.
Definition at line 63 of file osdMutex.c.
67 if ( ! weHaveInitialized ) {
70 osInfo.dwOSVersionInfoSize =
sizeof ( OSVERSIONINFO );
71 status = GetVersionEx ( & osInfo );
72 thisIsNT = status && ( osInfo.dwPlatformId == VER_PLATFORM_WIN32_NT );
73 weHaveInitialized = 1;
76 pSem = malloc (
sizeof (*pSem) );
union epicsMutexOSD::@18 os
CRITICAL_SECTION criticalSection
Definition at line 95 of file osdMutex.c.
101 CloseHandle ( pSem->
os.
mutex );
union epicsMutexOSD::@18 os
CRITICAL_SECTION criticalSection
Definition at line 123 of file osdMutex.c.
129 DWORD
status = WaitForSingleObject ( pSem->
os.
mutex, INFINITE );
130 if ( status != WAIT_OBJECT_0 ) {
union epicsMutexOSD::@18 os
CRITICAL_SECTION criticalSection
Definition at line 167 of file osdMutex.c.
170 printf (
"epicsMutex: win32 critical section at %p\n",
174 printf (
"epicsMutex: win32 mutex at %p\n",
union epicsMutexOSD::@18 os
CRITICAL_SECTION criticalSection
Definition at line 140 of file osdMutex.c.
152 if ( status != WAIT_OBJECT_0 ) {
153 if (status == WAIT_TIMEOUT) {
union epicsMutexOSD::@18 os
CRITICAL_SECTION criticalSection
Definition at line 109 of file osdMutex.c.
115 BOOL success = ReleaseMutex ( pSem->
os.
mutex );
#define assert(exp)
Declare that a condition should be true.
union epicsMutexOSD::@18 os
CRITICAL_SECTION criticalSection