diff options
author | Matthew Gregan <[email protected]> | 2016-11-04 16:35:46 +1300 |
---|---|---|
committer | Paul Adenot <[email protected]> | 2016-11-15 14:33:04 +0100 |
commit | 7fec421f8b913c58c4baa4db595868009d305ad0 (patch) | |
tree | 8d005ca603fecb0843a871fa4bcc540dae756fce /src/cubeb_utils_win.h | |
parent | 847e1b8fea27125942eaa403eee4b146176970a1 (diff) | |
download | cubeb-7fec421f8b913c58c4baa4db595868009d305ad0.tar.gz cubeb-7fec421f8b913c58c4baa4db595868009d305ad0.zip |
use std::lock_guard.
Diffstat (limited to 'src/cubeb_utils_win.h')
-rw-r--r-- | src/cubeb_utils_win.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/cubeb_utils_win.h b/src/cubeb_utils_win.h index 2b094cd..0112ad6 100644 --- a/src/cubeb_utils_win.h +++ b/src/cubeb_utils_win.h @@ -29,7 +29,7 @@ public: DeleteCriticalSection(&critical_section); } - void enter() + void lock() { EnterCriticalSection(&critical_section); #ifndef NDEBUG @@ -38,7 +38,7 @@ public: #endif } - void leave() + void unlock() { #ifndef NDEBUG /* GetCurrentThreadId cannot return 0: it is not a the valid thread id */ |