12 #ifndef ROOT_TSemaphore
13 #define ROOT_TSemaphore
25 #include <condition_variable>
29 class TSemaphore :
public TObject {
33 std::condition_variable fCond;
37 TSemaphore(
const TSemaphore &s) =
delete;
38 TSemaphore& operator=(
const TSemaphore &s) =
delete;
41 TSemaphore(Int_t initial = 1);
42 virtual ~TSemaphore() { }
45 Int_t Wait(Int_t millisec);
49 ClassDef(TSemaphore, 0)