< prev index next >
src/os/windows/vm/semaphore_windows.hpp
Print this page
*** 25,35 ****
#ifndef OS_WINDOWS_VM_SEMAPHORE_WINDOWS_HPP
#define OS_WINDOWS_VM_SEMAPHORE_WINDOWS_HPP
#include "memory/allocation.hpp"
! #include <WinBase.h>
class WindowsSemaphore : public CHeapObj<mtInternal> {
HANDLE _semaphore;
// Prevent copying and assignment.
--- 25,35 ----
#ifndef OS_WINDOWS_VM_SEMAPHORE_WINDOWS_HPP
#define OS_WINDOWS_VM_SEMAPHORE_WINDOWS_HPP
#include "memory/allocation.hpp"
! #include <windef.h>
class WindowsSemaphore : public CHeapObj<mtInternal> {
HANDLE _semaphore;
// Prevent copying and assignment.
*** 38,48 ****
public:
WindowsSemaphore(uint value = 0);
~WindowsSemaphore();
! void signal(uint count = 0);
void wait();
};
typedef WindowsSemaphore SemaphoreImpl;
--- 38,48 ----
public:
WindowsSemaphore(uint value = 0);
~WindowsSemaphore();
! void signal(uint count = 1);
void wait();
};
typedef WindowsSemaphore SemaphoreImpl;
< prev index next >