blob: 9f08d4bfd77e3d8a3d05fa0857a0009fe81b59ce (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
|
//
// windows-adapter.h
// AmbientLight
//
// Created by Thorsten Kummermehr on 10/9/13.
//
//
#ifndef AmbientLight_windows_adapter_h
#define AmbientLight_windows_adapter_h
#include "k2l-type.h"
#include <pthread.h>
typedef struct
{
pthread_mutex_t m_mutex;
} CRITICAL_SECTION;
typedef CRITICAL_SECTION * LPCRITICAL_SECTION;
void InitializeCriticalSection( LPCRITICAL_SECTION lpCriticalSection );
void DeleteCriticalSection(LPCRITICAL_SECTION lpCriticalSection);
void EnterCriticalSection(LPCRITICAL_SECTION lpCriticalSection);
void LeaveCriticalSection(LPCRITICAL_SECTION lpCriticalSection);
#endif
|