@@ -38,7 +38,7 @@ enkiTaskSet* tasks[e_maxTasks];
38
38
TaskData taskData [e_maxTasks ];
39
39
int taskCount ;
40
40
41
- void ExecuteRangeTask ( uint32_t start , uint32_t end , uint32_t threadIndex , void * context )
41
+ static void ExecuteRangeTask ( uint32_t start , uint32_t end , uint32_t threadIndex , void * context )
42
42
{
43
43
TaskData * data = context ;
44
44
data -> box2dTask ( start , end , threadIndex , data -> box2dContext );
@@ -84,7 +84,7 @@ static void FinishTask( void* userTask, void* userContext )
84
84
enkiWaitForTaskSet ( scheduler , task );
85
85
}
86
86
87
- void TiltedStacks ( int testIndex , int workerCount )
87
+ static void TiltedStacks ( int testIndex , int workerCount )
88
88
{
89
89
scheduler = enkiNewTaskScheduler ();
90
90
struct enkiTaskSchedulerConfig config = enkiGetTaskSchedulerConfig ( scheduler );
@@ -176,7 +176,7 @@ void TiltedStacks( int testIndex, int workerCount )
176
176
}
177
177
178
178
// Test multithreaded determinism.
179
- int DeterminismTest ( void )
179
+ static int MultithreadingTest ( void )
180
180
{
181
181
// Test 1 : 4 threads
182
182
TiltedStacks ( 0 , 4 );
@@ -200,3 +200,10 @@ int DeterminismTest( void )
200
200
201
201
return 0 ;
202
202
}
203
+
204
+ int DeterminismTest ( void )
205
+ {
206
+ RUN_SUBTEST ( MultithreadingTest );
207
+
208
+ return 0 ;
209
+ }
0 commit comments