MLIB
Loading...
Searching...
No Matches
semaphore.h
Go to the documentation of this file.
1#pragma once
2
10#include "syncbase.h"
11#include <limits.h>
12
13namespace mlib {
14
15class semaphore : public syncbase
16{
17public:
18 semaphore (int limit = INT_MAX, const std::string& name = std::string ());
19 int signal (int count = 1);
20 operator bool ();
21};
22
23} // namespace mlib
Wrapper for Windows semaphore objects.
Definition semaphore.h:16
int signal(int count=1)
Signal a semaphore object.
Definition semaphore.cpp:45
Base class for all named synchronization objects.
Definition syncbase.h:27
virtual const std::string & name() const
Return object's name.
Definition syncbase.h:60
syncbase class definition.