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

Function Graph_AcquireWriteLock

src/graph/graph.c:63–69  ·  view source on GitHub ↗

acquire a lock for exclusive access to this graph's data

Source from the content-addressed store, hash-verified

61
62// acquire a lock for exclusive access to this graph's data
63void Graph_AcquireWriteLock(Graph *g) {
64 ASSERT(g != NULL);
65 ASSERT(g->_writelocked == false);
66
67 pthread_rwlock_wrlock(&g->_rwlock);
68 g->_writelocked = true;
69}
70
71// Release the held lock
72void Graph_ReleaseLock

Callers 15

QueryCtx_LockForCommitFunction · 0.85
_Constraint_DropFunction · 0.85
_Constraint_CreateFunction · 0.85
Effects_ApplyFunction · 0.85
BulkInsertFunction · 0.85
_indexer_idx_populateFunction · 0.85
_build_graphFunction · 0.85
test_newGraphFunction · 0.85

Calls

no outgoing calls

Tested by 9

_build_graphFunction · 0.68
test_newGraphFunction · 0.68
test_graphConstructionFunction · 0.68
test_removeNodesFunction · 0.68
test_getNodeFunction · 0.68
test_getEdgeFunction · 0.68