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

Function GrB_Vector_wait

deps/GraphBLAS/Source/GrB_Vector_wait.c:16–48  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

14#define GB_FREE_ALL ;
15
16GrB_Info GrB_Vector_wait // finish all work on a vector
17(
18 GrB_Vector v,
19 GrB_WaitMode waitmode
20)
21{
22
23 //--------------------------------------------------------------------------
24 // check inputs
25 //--------------------------------------------------------------------------
26
27 GB_WHERE (v, "GrB_Vector_wait (v, waitmode)") ;
28 GB_RETURN_IF_NULL_OR_FAULTY (v) ;
29
30 //--------------------------------------------------------------------------
31 // finish all pending work on the vector
32 //--------------------------------------------------------------------------
33
34 if (waitmode != GrB_COMPLETE && GB_ANY_PENDING_WORK (v))
35 {
36 GrB_Info info ;
37 GB_BURBLE_START ("GrB_Vector_wait") ;
38 GB_OK (GB_wait ((GrB_Matrix) v, "vector", Context)) ;
39 GB_BURBLE_END ;
40 }
41
42 //--------------------------------------------------------------------------
43 // return result
44 //--------------------------------------------------------------------------
45
46 #pragma omp flush
47 return (GrB_SUCCESS) ;
48}
49

Callers 4

mexFunctionFunction · 0.85
mexFunctionFunction · 0.85
mexFunctionFunction · 0.85
mexFunctionFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected