18 #ifndef ION_PORT_MUTEX_H_
19 #define ION_PORT_MUTEX_H_
21 #if defined(ION_PLATFORM_WINDOWS)
27 #include "base/macros.h"
55 #if defined(ION_PLATFORM_WINDOWS)
56 CRITICAL_SECTION critical_section_;
60 #elif defined(ION_PLATFORM_ASMJS)
63 pthread_mutex_t pthread_mutex_;
66 DISALLOW_COPY_AND_ASSIGN(
Mutex);
72 #endif // ION_PORT_MUTEX_H_
A Mutex is used to ensure that only one thread or process can access a block of code at one time...