Files
MP-SPDZ/Tools/Signal.h
Marcel Keller 2008a8782d Overdrive.
2018-03-02 14:33:03 +00:00

29 lines
394 B
C++

// (C) 2018 University of Bristol. See License.txt
/*
* Signal.h
*
*/
#ifndef TOOLS_SIGNAL_H_
#define TOOLS_SIGNAL_H_
#include <pthread.h>
class Signal
{
pthread_mutex_t mutex;
pthread_cond_t cond;
public:
Signal();
virtual ~Signal();
void lock();
void unlock();
void wait();
int wait(int seconds);
void broadcast();
};
#endif /* TOOLS_SIGNAL_H_ */