MLIB
Loading...
Searching...
No Matches
semaphore.h
Go to the documentation of this file.
1#pragma once
2
9
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
semaphore(int limit=INT_MAX, const std::string &name=std::string())
Definition semaphore.cpp:31
int signal(int count=1)
Signal a semaphore object.
Definition semaphore.cpp:45
syncbase()
Default constructor.
Definition syncbase.cpp:37
virtual const std::string & name() const
Return object's name.
Definition syncbase.h:60
syncbase class definition.