* Creates a thread-private TimeTrace::Buffer object for the current thread, * if one doesn't already exist. */
| 31 | * if one doesn't already exist. |
| 32 | */ |
| 33 | void |
| 34 | TimeTrace::createThreadBuffer() |
| 35 | { |
| 36 | std::lock_guard<std::mutex> guard(mutex); |
| 37 | if (threadBuffer == NULL) { |
| 38 | threadBuffer = new Buffer; |
| 39 | threadBuffers.push_back(threadBuffer); |
| 40 | } |
| 41 | } |
| 42 | |
| 43 | |
| 44 | /** |
nothing calls this directly
no outgoing calls
no test coverage detected