14 #ifdef ANGLE_PLATFORM_WINDOWS 17 # ifdef ANGLE_ENABLE_WINDOWS_STORE 18 # ifndef TLS_OUT_OF_INDEXES 19 # define TLS_OUT_OF_INDEXES static_cast<DWORD>(0xFFFFFFFF) 21 # ifndef CREATE_SUSPENDED 22 # define CREATE_SUSPENDED 0x00000004 25 typedef DWORD TLSIndex;
26 # define TLS_INVALID_INDEX (TLS_OUT_OF_INDEXES) 27 #elif defined(ANGLE_PLATFORM_POSIX) 29 # include <semaphore.h> 31 typedef pthread_key_t TLSIndex;
32 # define TLS_INVALID_INDEX (static_cast<TLSIndex>(-1)) 34 # error Unsupported platform. 46 #endif // COMMON_TLS_H_ bool DestroyTLSIndex(TLSIndex index)
Definition: tls.cpp:69
TLSIndex CreateTLSIndex()
Definition: tls.cpp:37
bool SetTLSValue(TLSIndex index, void *value)
Definition: tls.cpp:99
void * GetTLSValue(TLSIndex index)
Definition: tls.cpp:131
GLuint index
Definition: gl2.h:383
EGLAttrib * value
Definition: eglext.h:120