MCPcopy Create free account
hub / github.com/bfbbdecomp/bfbb / KillThreads

Function KillThreads

src/dolphin/src/os/OSReset.c:132–150  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

130OSThreadQueue __OSActiveThreadQueue : (OS_BASE_CACHED | 0x00DC);
131
132inline void KillThreads(void)
133{
134 OSThread* thread;
135 OSThread* next;
136
137 for (thread = __OSActiveThreadQueue.head; thread; thread = next)
138 {
139 next = thread->linkActive.next;
140 switch (thread->state)
141 {
142 case 1:
143 case 4:
144 OSCancelThread(thread);
145 break;
146 default:
147 break;
148 }
149 }
150}
151
152void __OSDoHotReset(s32 arg0)
153{

Callers 1

OSResetSystemFunction · 0.85

Calls 1

OSCancelThreadFunction · 0.85

Tested by

no test coverage detected