Searched refs:start_cnt_ (Results 1 – 1 of 1) sorted by relevance
132 semaphore(size_t start_cnt_ = 0) {init_semaphore(start_cnt_);}141 void init_semaphore(size_t start_cnt_) { in init_semaphore() argument142 …sem = CreateSemaphoreEx( nullptr, LONG(start_cnt_), max_semaphore_cnt, nullptr, 0, SEMAPHORE_ALL_A… in init_semaphore()150 semaphore(int start_cnt_ = 0) { my_sem = dispatch_semaphore_create(start_cnt_); }169 semaphore(int start_cnt_ = 0 ) { init_semaphore( start_cnt_ ); }185 void init_semaphore(int start_cnt_) { in init_semaphore() argument186 int ret = sem_init( &sem, /*shared among threads*/ 0, start_cnt_ ); in init_semaphore()