]>
Commit | Line | Data |
---|---|---|
1 | // | |
2 | // PITest.h | |
3 | // PerfIndex | |
4 | // | |
5 | // Created by Mark Hamilton on 8/21/13. | |
6 | // | |
7 | // | |
8 | ||
9 | #import <Foundation/Foundation.h> | |
10 | #import "PerfIndex.h" | |
11 | ||
12 | @interface PITest : NSObject <HGTest> | |
13 | { | |
14 | int (*setup_func)(int, long long, int, void**); | |
15 | int (*execute_func)(int, int, long long, int, void**); | |
16 | void (*cleanup_func)(int, long long); | |
17 | ||
18 | long long length; | |
19 | int numThreads; | |
20 | int readyThreadCount; | |
21 | int testArgc; | |
22 | void** testArgv; | |
23 | pthread_mutex_t readyThreadCountLock; | |
24 | pthread_cond_t threadsReadyCvar; | |
25 | pthread_cond_t startCvar; | |
26 | pthread_t* threads; | |
27 | } | |
28 | ||
29 | @property NSString* testName; | |
30 | ||
31 | - (BOOL)setup; | |
32 | - (BOOL)execute; | |
33 | - (void)cleanup; | |
34 | ||
35 | ||
36 | @end |