-
Notifications
You must be signed in to change notification settings - Fork 0
/
thread.h
56 lines (40 loc) · 991 Bytes
/
thread.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
// スレッド
#ifndef __THREAD_H__
#define __THREAD_H__
#include <pspkernel.h>
// 定義
#define MAX_THREAD 64
//#define SUSPEND_MODE 0 // 停止
//#define RESUME_MODE 1 // 再開
//void safelySuspendThreadsInit();
/*
@return :
== 0 already suspended
< 0 until suspended
> 0 now just suspend
*/
//int safelySuspendThreads( clock_t waitTime );
void suspendThreads();
void resumeThreads();
int threadCtrlIsSuspending();
int threadCtrlInit();
int threadCtrlSuspend();
int threadCtrlResume();
/*
起動時のスレッドを取得する
※できるだけ起動時に使ってください
*/
void Get_FirstThreads();
/*
自分のスレッド以外を停止・再開させる
mode は SUSPEND_MODE と RESUME_MODE の二つが使えます
*/
//void Suspend_Resume_Threads(int mode);
//bool Get_ThreadModeStatus();
//== ture : suspend / == false : resume
//int Get_ThreadStatus();
/*
@return 0 -> running
1 -> suspend
*/
#endif