mirror of
https://github.com/slsdetectorgroup/slsDetectorPackage.git
synced 2025-04-22 14:38:14 +02:00
24 lines
301 B
C++
24 lines
301 B
C++
#pragma once
|
|
|
|
#include <pthread.h>
|
|
#include <unistd.h>
|
|
#include <deque>
|
|
#include <iostream>
|
|
#include <vector>
|
|
|
|
#include "Global.h"
|
|
|
|
|
|
class CondVar {
|
|
public:
|
|
|
|
CondVar();
|
|
~CondVar();
|
|
void wait(pthread_mutex_t* mutex);
|
|
void signal();
|
|
void broadcast();
|
|
|
|
private:
|
|
pthread_cond_t m_cond_var;
|
|
};
|