return number of threads in both the readers and writers pools
| 60 | |
| 61 | // return number of threads in both the readers and writers pools |
| 62 | uint ThreadPools_ThreadCount |
| 63 | ( |
| 64 | void |
| 65 | ) { |
| 66 | ASSERT(_readers_thpool != NULL); |
| 67 | ASSERT(_writers_thpool != NULL); |
| 68 | |
| 69 | uint count = 0; |
| 70 | count += thpool_num_threads(_readers_thpool); |
| 71 | count += thpool_num_threads(_writers_thpool); |
| 72 | |
| 73 | return count; |
| 74 | } |
| 75 | |
| 76 | uint ThreadPools_ReadersCount |
| 77 | ( |