MCPcopy Create free account
hub / github.com/RedisGraph/RedisGraph / Graph_AcquireReadLock

Function Graph_AcquireReadLock

src/graph/graph.c:56–60  ·  view source on GitHub ↗

acquire a lock that does not restrict access from additional reader threads

Source from the content-addressed store, hash-verified

54
55// acquire a lock that does not restrict access from additional reader threads
56void Graph_AcquireReadLock(Graph *g) {
57 ASSERT(g != NULL);
58
59 pthread_rwlock_rdlock(&g->_rwlock);
60}
61
62// acquire a lock for exclusive access to this graph's data
63void Graph_AcquireWriteLock(Graph *g) {

Callers 8

RG_ForkPrepareFunction · 0.85
_ExecuteQueryFunction · 0.85
Graph_ExplainFunction · 0.85
RdbSaveGraph_v13Function · 0.85
Constraint_EnforceNodesFunction · 0.85
Constraint_EnforceEdgesFunction · 0.85
_Index_PopulateNodeIndexFunction · 0.85
_Index_PopulateEdgeIndexFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected