mirror of
https://github.com/data61/MP-SPDZ.git
synced 2026-04-20 03:01:31 -04:00
23 lines
237 B
C++
23 lines
237 B
C++
/*
|
|
* Lock.h
|
|
*
|
|
*/
|
|
|
|
#ifndef TOOLS_LOCK_H_
|
|
#define TOOLS_LOCK_H_
|
|
|
|
#include <pthread.h>
|
|
|
|
class Lock
|
|
{
|
|
pthread_mutex_t mutex;
|
|
public:
|
|
Lock();
|
|
virtual ~Lock();
|
|
|
|
void lock();
|
|
void unlock();
|
|
};
|
|
|
|
#endif /* TOOLS_LOCK_H_ */
|