mirror of
https://github.com/slsdetectorgroup/slsDetectorPackage.git
synced 2025-06-11 12:27:14 +02:00
something
This commit is contained in:
24
slsDetectorSoftware/threadFiles/CondVar.h
Normal file
24
slsDetectorSoftware/threadFiles/CondVar.h
Normal file
@ -0,0 +1,24 @@
|
||||
#pragma once
|
||||
|
||||
#include <pthread.h>
|
||||
#include <unistd.h>
|
||||
#include <deque>
|
||||
#include <iostream>
|
||||
#include <vector>
|
||||
|
||||
#include "Global.h"
|
||||
|
||||
using namespace std;
|
||||
|
||||
class CondVar {
|
||||
public:
|
||||
|
||||
CondVar();
|
||||
~CondVar();
|
||||
void wait(pthread_mutex_t* mutex);
|
||||
void signal();
|
||||
void broadcast();
|
||||
|
||||
private:
|
||||
pthread_cond_t m_cond_var;
|
||||
};
|
Reference in New Issue
Block a user