1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859 |
- /********************************************************************** <BR>
- This file is part of Crack dot Com's free source code release of
- Golgotha. <a href="http://www.crack.com/golgotha_release"> <BR> for
- information about compiling & licensing issues visit this URL</a>
- <PRE> If that doesn't help, contact Jonathan Clark at
- golgotha_source@usa.net (Subject should have "GOLG" in it)
- ***********************************************************************/
- #include <stdlib.h>
- #include "threads/threads.hh"
- #include "error/error.hh"
- #include "time/time.hh"
- #include "main/main.hh"
- i4_critical_section_class::i4_critical_section_class() {}
- void i4_critical_section_class::lock() {}
- void i4_critical_section_class::unlock() {}
- i4_critical_section_class::~i4_critical_section_class() {}
- i4_signal_object::i4_signal_object(char *name) {}
- void i4_signal_object::wait_signal() {}
- void i4_signal_object::signal() {}
- i4_signal_object::~i4_signal_object() {}
- i4_bool i4_threads_supported() { return i4_F; }
- // this will start the thread right away, regardless of how many threads are running
- void i4_add_thread(i4_thread_func_type fun, w32 stack_size, void *context)
- {
- i4_error("Threads not supported");
- }
- void i4_thread_yield() { i4_sleep(0); }
- void i4_wait_threads() {}
- int i4_get_thread_id() { return 0; }
- int i4_get_main_thread_id() { return 0; }
- void i4_suspend_other_threads() {}
- void i4_resume_other_threads() {}
- int i4_get_first_thread_id() { return 0; }
- i4_bool i4_get_next_thread_id(int last_id, int &id) { return i4_F; }
- void i4_get_thread_stack(int thread_id, void *&base, void *&top)
- {
- int t;
- base=i4_stack_base;
- top=(void *)(&t);
- }
- void i4_set_thread_priority(int thread_id, i4_thread_priority_type priority) { ;}
|