MCPcopy Create free account
hub / github.com/alibaba/graph-learn / GetInMemoryEventQueue

Function GetInMemoryEventQueue

graphlearn/src/service/local/event_queue.h:75–86  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

73
74template<class T>
75EventQueue<T>* GetInMemoryEventQueue() {
76 static std::mutex mtx;
77 static EventQueue<T>* q = NULL;
78 if (q == NULL) {
79 mtx.lock();
80 if (q == NULL) {
81 q = new EventQueue<T>(GLOBAL_FLAG(InMemoryQueueSize));
82 }
83 mtx.unlock();
84 }
85 return q;
86}
87
88} // namespace graphlearn
89

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected