return number of graphs in keyspace
| 58 | |
| 59 | // return number of graphs in keyspace |
| 60 | int Globals_GetGraphCount(void) { |
| 61 | // acuire read lock |
| 62 | pthread_rwlock_rdlock(&_globals.lock); |
| 63 | |
| 64 | // get number of graphs |
| 65 | int n = array_len(_globals.graphs_in_keyspace); |
| 66 | |
| 67 | // unlock |
| 68 | pthread_rwlock_unlock(&_globals.lock); |
| 69 | |
| 70 | return n; |
| 71 | } |
| 72 | |
| 73 | // get direct access to 'graphs_in_keyspace' |
| 74 | GraphContext **Globals_Get_GraphsInKeyspace(void) { |
no test coverage detected