#include <sthread.h>
/*
* Event semaphore
*/
class sevsem_t : public sthread_base_t {
public:
NORET sevsem_t(
int is_post = 0,
const char* name = 0);
NORET ~sevsem_t();
w_rc_t post();
w_rc_t reset(int* pcnt = 0);
w_rc_t wait(int4_t timeout = WAIT_FOREVER);
void query(int& pcnt);
void setname(
const char* n1,
const char* n2 = 0);
};
sevsem_t(is_post, name)