37 #include "qore/intern/AbstractSmartLock.h"
42 typedef std::map<int, class VLock *> vlock_map_t;
46 typedef std::vector<AbstractSmartLock *> abstract_lock_list_t;
49 class VLock :
protected abstract_lock_list_t
52 AbstractSmartLock *waiting_on;
57 VLock& operator=(
const VLock&);
60 DLLLOCAL VLock(
int n_tid);
62 DLLLOCAL
void push(AbstractSmartLock *g);
63 DLLLOCAL
int pop(AbstractSmartLock *asl);
65 DLLLOCAL AbstractSmartLock *find(AbstractSmartLock *g)
const;
68 DLLLOCAL
int waitOn(AbstractSmartLock *asl,
class VLock *vl,
class ExceptionSink *xsink,
int timeout_ms = 0);
70 DLLLOCAL
int waitOn(AbstractSmartLock *asl,
class QoreCondition *cond,
class VLock *vl,
class ExceptionSink *xsink,
int timeout_ms = 0);
72 DLLLOCAL
int waitOn(AbstractSmartLock *asl, vlock_map_t &vmap,
class ExceptionSink *xsink,
int timeout_ms = 0);
73 DLLLOCAL
int getTID()
const {
return tid; }
76 DLLLOCAL
void show(
class VLock *nvl)
const;
container for holding Qore-language exception information and also for registering a "thread_exit" ca...
Definition: ExceptionSink.h:48
a thread condition class implementing a wrapper for pthread_cond_t
Definition: QoreCondition.h:45