source: golgotha/src/i4/threads/saturn/threads.cc @ 80

Last change on this file since 80 was 80, checked in by Sam Hocevar, 14 years ago
  • Adding the Golgotha source code. Not sure what's going to be interesting in there, but since it's all public domain, there's certainly stuff to pick up.
File size: 1.1 KB
Line 
1/********************************************************************** <BR>
2  This file is part of Crack dot Com's free source code release of
3  Golgotha. <a href="http://www.crack.com/golgotha_release"> <BR> for
4  information about compiling & licensing issues visit this URL</a>
5  <PRE> If that doesn't help, contact Jonathan Clark at
6  golgotha_source@usa.net (Subject should have "GOLG" in it)
7***********************************************************************/
8
9#include "threads/threads.hh"
10
11// this will start the thread right away, regardless of how many threads are running
12void i4_add_thread(i4_thread_func_type fun, w32 stack_size, void *arg_list)
13{
14  fun(arg_list);
15}
16
17// this will start the thread after all other threads have exited, useful for queing
18// up things that to disk access but don't want to do seek-thrashing
19void i4_que_thread(i4_thread_func_type fun, w32 stack_size, void *arg_list)
20{
21  fun(arg_list);
22}
23
24
25void i4_end_of_thread() { ; }
26void i4_end_of_que_thread() { ; }
27void i4_thread_yield() { ; }
28void i4_wait_threads() { ; }  // waits for all threads to terminate (don't call from a thread!)
29
Note: See TracBrowser for help on using the repository browser.