MCPcopy Create free account
hub / github.com/async-profiler/async-profiler / addThread

Method addThread

src/os_linux.cpp:45–51  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

43 u32 _capacity;
44
45 void addThread(int thread_id) {
46 if (_count >= _capacity) {
47 _capacity = _count * 2;
48 _thread_array = (int*)realloc(_thread_array, _capacity * sizeof(int));
49 }
50 _thread_array[_count++] = thread_id;
51 }
52
53 void fillThreadArray() {
54 if (_dir != NULL) {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected