pcsxr-1.9.92
[pcsx_rearmed.git] / macosx / EmuThread.h
1 //
2 //  EmuThread.h
3 //  Pcsx
4 //
5 //  Created by Gil Pedersen on Sun Sep 21 2003.
6 //  Copyright (c) 2003 __MyCompanyName__. All rights reserved.
7 //
8
9 #import <Foundation/Foundation.h>
10 #include <setjmp.h>
11
12 @interface EmuThread : NSObject {
13         NSAutoreleasePool *pool;
14         jmp_buf  restartJmp;
15         BOOL wasPaused;
16 }
17
18 - (void)EmuThreadRun:(id)anObject;
19 - (void)EmuThreadRunBios:(id)anObject;
20 - (void)handleEvents;
21
22 + (void)run;
23 + (void)runBios;
24 + (void)stop;
25 + (BOOL)pause;
26 + (BOOL)pauseSafe;
27 + (void)resume;
28 + (void)resetNow;
29 + (void)reset;
30
31 + (BOOL)isPaused;
32 + (BOOL)active;
33 + (BOOL)isRunBios;
34
35 + (void)freezeAt:(NSString *)path which:(int)num;
36 + (BOOL)defrostAt:(NSString *)path;
37
38 @end
39
40 extern EmuThread *emuThread;