PS2SDK
PS2 Homebrew Libraries
Loading...
Searching...
No Matches
misc_fssk.c
1/*
2# _____ ___ ____ ___ ____
3# ____| | ____| | | |____|
4# | ___| |____ ___| ____| | \ PS2DEV Open Source Project.
5#-----------------------------------------------------------------------
6# Copyright 2001-2004, ps2dev - http://www.ps2dev.org
7# Licenced under Academic Free License version 2.0
8# Review ps2sdk README & LICENSE files for further details.
9*/
10
11#include <thbase.h>
12#include <thevent.h>
13
14#include "libpfs.h"
15#include "misc_fssk.h"
16
17int fsskCreateEventFlag(void)
18{
19 iop_event_t EventFlagData;
20
21 EventFlagData.attr = EA_MULTI;
22 EventFlagData.bits = 0;
23 return CreateEventFlag(&EventFlagData);
24}
25
26int fsskCreateThread(void (*function)(void *arg), int StackSize)
27{
28 iop_thread_t ThreadData;
29
30 ThreadData.attr = TH_C;
31 ThreadData.thread = function;
32 ThreadData.priority = 0x7b;
33 ThreadData.stacksize = StackSize;
34 return CreateThread(&ThreadData);
35}
#define EA_MULTI
Definition thevent.h:35