| 14 | #define GB_FREE_ALL ; |
| 15 | |
| 16 | GrB_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 |
no outgoing calls
no test coverage detected