aboutsummaryrefslogtreecommitdiff
path: root/src/leveldb/port/port_win.cc
diff options
context:
space:
mode:
Diffstat (limited to 'src/leveldb/port/port_win.cc')
-rw-r--r--src/leveldb/port/port_win.cc7
1 files changed, 1 insertions, 6 deletions
diff --git a/src/leveldb/port/port_win.cc b/src/leveldb/port/port_win.cc
index 7cf9537937..15dfde1f27 100644
--- a/src/leveldb/port/port_win.cc
+++ b/src/leveldb/port/port_win.cc
@@ -123,13 +123,8 @@ AtomicPointer::AtomicPointer(void* v) {
Release_Store(v);
}
-BOOL CALLBACK InitHandleFunction (PINIT_ONCE InitOnce, PVOID func, PVOID *lpContext) {
- ((void (*)())func)();
- return true;
-}
-
void InitOnce(OnceType* once, void (*initializer)()) {
- InitOnceExecuteOnce((PINIT_ONCE)once, InitHandleFunction, initializer, NULL);
+ once->InitOnce(initializer);
}
void* AtomicPointer::Acquire_Load() const {