AppThreadEntry
fAppThread = spawn_thread(AppThreadEntry, "app thread", B_NORMAL_PRIORITY,
static int32 AppThreadEntry(void *data);