From 38b9a874e0337139e514e8155876703e7b98aec2 Mon Sep 17 00:00:00 2001 From: andy Date: Mon, 2 Apr 2007 17:34:47 +0000 Subject: [PATCH] Add missing free functions for win32 --- simgear/nasal/thread-win32.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/simgear/nasal/thread-win32.c b/simgear/nasal/thread-win32.c index ae63023a..7a459560 100644 --- a/simgear/nasal/thread-win32.c +++ b/simgear/nasal/thread-win32.c @@ -13,9 +13,11 @@ void* naNewLock() void naLock(void* lock) { EnterCriticalSection((LPCRITICAL_SECTION)lock); } void naUnlock(void* lock) { LeaveCriticalSection((LPCRITICAL_SECTION)lock); } +void naFreeLock(void* lock) { free(lock); } void* naNewSem() { return CreateSemaphore(0, 0, MAX_SEM_COUNT, 0); } void naSemDown(void* sem) { WaitForSingleObject((HANDLE)sem, INFINITE); } void naSemUp(void* sem, int count) { ReleaseSemaphore(sem, count, 0); } +void naFreeSem(void* sem) { ReleaseSemaphore(sem, 1, 0); } #endif -- 2.39.5