MCPcopy Create free account
hub / github.com/cameron314/concurrentqueue / sema_P

Method sema_P

benchmarks/tbb/pipeline.cpp:102–102  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

100 void create_sema(size_t initial_tokens) { __TBB_ASSERT(!my_sem,NULL); my_sem = new internal::semaphore(initial_tokens); }
101 void free_sema() { __TBB_ASSERT(my_sem,NULL); delete my_sem; }
102 void sema_P() { __TBB_ASSERT(my_sem,NULL); my_sem->P(); }
103 void sema_V() { __TBB_ASSERT(my_sem,NULL); my_sem->V(); }
104
105public:

Callers 1

internal_process_itemMethod · 0.80

Calls 1

PMethod · 0.45

Tested by

no test coverage detected