MCPcopy Create free account
hub / github.com/LouisBrunner/valgrind-macos / MyThreadArray

Method MyThreadArray

drd/tests/tsan_unittest.cpp:284–290  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

282 static const int kSize = 5;
283 typedef void (*F) (void);
284 MyThreadArray(F f1, F f2 = NULL, F f3 = NULL, F f4 = NULL, F f5 = NULL) {
285 ar_[0] = new MyThread(f1);
286 ar_[1] = f2 ? new MyThread(f2) : NULL;
287 ar_[2] = f3 ? new MyThread(f3) : NULL;
288 ar_[3] = f4 ? new MyThread(f4) : NULL;
289 ar_[4] = f5 ? new MyThread(f5) : NULL;
290 }
291 void Start() {
292 for(int i = 0; i < kSize; i++) {
293 if(ar_[i]) {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected