* InitDeviceThread * * libOGC provides a nice wrapper for LWP access. * This function sets up a new local queue and attaches the thread to it. ***************************************************************************/
| 222 | * This function sets up a new local queue and attaches the thread to it. |
| 223 | ***************************************************************************/ |
| 224 | void |
| 225 | InitDeviceThread() |
| 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 |