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

Function moodycamel_cq_create

c_api/concurrentqueue.cpp:8–16  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

6extern "C" {
7
8int moodycamel_cq_create(MoodycamelCQHandle* handle)
9{
10 MoodycamelCQPtr retval = new MoodycamelCQType;
11 if (retval == nullptr) {
12 return 0;
13 }
14 *handle = retval;
15 return 1;
16}
17
18int moodycamel_cq_destroy(MoodycamelCQHandle handle)
19{

Callers 4

c_api_createMethod · 0.85
c_api_enqueueMethod · 0.85
c_api_try_dequeueMethod · 0.85
c_api_destroyMethod · 0.85

Calls

no outgoing calls

Tested by 4

c_api_createMethod · 0.68
c_api_enqueueMethod · 0.68
c_api_try_dequeueMethod · 0.68
c_api_destroyMethod · 0.68