MCPcopy Create free account
hub / github.com/Tencent/Hardcoder / rqueue

Method rqueue

libapp2sys/src/main/cpp/util.h:86–90  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

84
85public:
86 rqueue() {
87 sem_init(&_semmax, 0, queuelen ? queuelen : 65535);
88 sem_init(&_semcnt, 0, 0);
89 pthread_mutex_init(&_mutex, NULL);
90 }
91
92 ~rqueue() {
93 sem_destroy(&_semmax);

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected