Skip to content

Commit

Permalink
minor compilation fixes (#114)
Browse files Browse the repository at this point in the history
  • Loading branch information
erincatto committed Dec 11, 2023
1 parent 8c13c08 commit 60ee314
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/TaskScheduler.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -551,7 +551,7 @@ static inline uint32_t Hash32( uint32_t in_ )
acc = acc ^ (acc >> 13);
acc = acc * PRIME32_3;
acc = acc ^ (acc >> 16);
return (std::size_t)acc;
return acc;
}

bool TaskScheduler::TryRunTask( uint32_t threadNum_, uint32_t priority_, uint32_t& hintPipeToCheck_io_ )
Expand Down
4 changes: 2 additions & 2 deletions src/TaskScheduler_c.h
Original file line number Diff line number Diff line change
Expand Up @@ -130,7 +130,7 @@ struct enkiTaskSchedulerConfig

/* ---------------------------- Task Scheduler ---------------------------- */
// Create a new task scheduler
ENKITS_API enkiTaskScheduler* enkiNewTaskScheduler();
ENKITS_API enkiTaskScheduler* enkiNewTaskScheduler( void );

// Create a new task scheduler using a custom allocator
// This will use the custom allocator to allocate the task scheduler struct
Expand Down Expand Up @@ -211,7 +211,7 @@ ENKITS_API uint32_t enkiGetNumRegisteredExternalTaskThreads( enkiTask
// for( uint32_t externalThreadNum = GetNumFirstExternalTaskThread();
// externalThreadNum < ( GetNumFirstExternalTaskThread() + numExternalTaskThreads
// ++externalThreadNum ) { // do something with externalThreadNum }
ENKITS_API uint32_t enkiGetNumFirstExternalTaskThread();
ENKITS_API uint32_t enkiGetNumFirstExternalTaskThread( void );


/* ---------------------------- TaskSets ---------------------------- */
Expand Down

0 comments on commit 60ee314

Please sign in to comment.