cput_thread() now has correct pthread function prototype

This commit is contained in:
Aaron Culliney 2014-09-16 20:39:08 -07:00
parent a929ef854c
commit 1b8387d214
3 changed files with 6 additions and 4 deletions

View File

@ -624,7 +624,7 @@ void c_initialize_firsttime()
}
#if !defined(TESTING) && !defined(__APPLE__)
extern void cpu_thread(void *dummyptr);
extern void *cpu_thread(void *dummyptr);
int main(int _argc, char **_argv) {
argc = _argc;
@ -634,7 +634,7 @@ int main(int _argc, char **_argv) {
c_initialize_firsttime(); /* init svga graphics and vm */
// spin off cpu thread
pthread_create(&cpu_thread_id, NULL, (void *) &cpu_thread, (void *)NULL);
pthread_create(&cpu_thread_id, NULL, (void *) &cpu_thread,(void *)NULL);
c_keys_set_key(kF8); // show credits

View File

@ -159,7 +159,7 @@ void timing_initialize()
_timing_initialize(cpu_scale_factor);
}
void cpu_thread(void *dummyptr) {
void *cpu_thread(void *dummyptr) {
assert(pthread_self() == cpu_thread_id);
@ -325,6 +325,8 @@ void cpu_thread(void *dummyptr) {
reinitialize();
} while (1);
return NULL;
}
// From AppleWin...

View File

@ -56,7 +56,7 @@ void timing_toggle_cpu_speed();
void timing_initialize();
void cpu_thread();
void *cpu_thread(void *ignored);
void CpuCalcCycles(const unsigned long nExecutedCycles);