MCPcopy Create free account
hub / github.com/dborth/fceugx / InitDeviceThread

Function InitDeviceThread

source/fileop.cpp:224–238  ·  view source on GitHub ↗

* InitDeviceThread * * libOGC provides a nice wrapper for LWP access. * This function sets up a new local queue and attaches the thread to it. ***************************************************************************/

Source from the content-addressed store, hash-verified

222 * This function sets up a new local queue and attaches the thread to it.
223 ***************************************************************************/
224void
225InitDeviceThread()
226{
227#ifdef HW_RVL
228 LWP_MutexInit(&deviceMutex, false);
229 LWP_CondInit(&deviceWakeCond);
230 LWP_CondInit(&deviceHaltCond);
231 LWP_CreateThread(&devicethread, devicecallback, NULL, NULL, 0, 40);
232#endif
233
234 LWP_MutexInit(&parseMutex, false);
235 LWP_CondInit(&parseCond);
236 LWP_CondInit(&parseIdleCond);
237 LWP_CreateThread(&parsethread, parsecallback, NULL, NULL, 0, 80);
238}
239
240/****************************************************************************
241 * UnmountAllFAT

Callers 1

SystemInitFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected