| 32 | thread_array_t _thread_array; |
| 33 | |
| 34 | void deallocate() { |
| 35 | if (_thread_array != NULL) { |
| 36 | for (u32 i = 0; i < _count; i++) { |
| 37 | mach_port_deallocate(_task, _thread_array[i]); |
| 38 | } |
| 39 | vm_deallocate(_task, (vm_address_t)_thread_array, _count * sizeof(thread_t)); |
| 40 | _thread_array = NULL; |
| 41 | } |
| 42 | } |
| 43 | |
| 44 | public: |
| 45 | MacThreadList() { |
nothing calls this directly
no outgoing calls
no test coverage detected