threads.c File Reference

#include "frontier.h"
#include "standard.h"
#include "error.h"
#include "ops.h"
#include "memory.h"
#include "threads.h"
#include "shell.h"

Include dependency graph for threads.c:

Go to the source code of this file.

Functions

boolean initmainthread (void *hglobals)
boolean inmainthread (void)
boolean attachtomainthread (long idthread)
boolean newthread (tythreadmaincallback threadmain, tythreadmainparams threadparams, void *hglobals, hdlthread *hthread)
boolean threadiswaiting (void)
boolean threadyield (boolean flresting)
boolean threadstartup (void)
void threadshutdown (void)
boolean threadsleep (hdlthread hthread)
boolean threadissleeping (hdlthread hthread)
boolean threadwake (hdlthread hthread, boolean flpriority)
boolean initthreads (void)

Variables

tythreadcallbacks threadcallbacks


Function Documentation

boolean attachtomainthread long  idthread  ) 
 

Definition at line 260 of file threads.c.

boolean initmainthread void *  hglobals  ) 
 

Definition at line 179 of file threads.c.

References NULL, oserror(), RememberA5, tythreadcallbacks::swapincallback, and threadcallbacks.

Referenced by initmainprocessthread().

Here is the call graph for this function:

boolean initthreads void   ) 
 

Definition at line 772 of file threads.c.

References gestalt().

Referenced by initmainprocessthread().

Here is the call graph for this function:

boolean inmainthread void   ) 
 

Definition at line 242 of file threads.c.

Referenced by fwsbackgroundtask(), fwsNetEventStatusStream(), landsystem7handleevent(), landsystem7send(), notifyuser(), and xmlcompile().

boolean newthread tythreadmaincallback  threadmain,
tythreadmainparams  threadparams,
void *  hglobals,
hdlthread hthread
 

Definition at line 348 of file threads.c.

References globals, h, macmemoryconfig, tymemoryconfig::minstacksize, newfilledhandle(), nil, NULL, and oserror().

Referenced by newprocessthread().

Here is the call graph for this function:

boolean threadissleeping hdlthread  hthread  ) 
 

Definition at line 708 of file threads.c.

References nil, noErr, and shellerrormessage().

Referenced by threadwake().

Here is the call graph for this function:

boolean threadiswaiting void   ) 
 

Definition at line 423 of file threads.c.

Referenced by scriptbackgroundtask().

void threadshutdown void   ) 
 

Definition at line 658 of file threads.c.

Referenced by exitprocessthread().

boolean threadsleep hdlthread  hthread  ) 
 

Definition at line 665 of file threads.c.

References grabthreadglobalsnopriority(), nil, noErr, and releasethreadglobalsnopriority().

Referenced by agentthreadmain(), and processsleep().

Here is the call graph for this function:

boolean threadstartup void   ) 
 

Definition at line 636 of file threads.c.

Referenced by initprocessthread().

boolean threadwake hdlthread  hthread,
boolean  flpriority
 

Definition at line 734 of file threads.c.

References noErr, and threadissleeping().

Referenced by processwake().

Here is the call graph for this function:

boolean threadyield boolean  flresting  ) 
 

Definition at line 439 of file threads.c.

References noErr, tythreadcallbacks::swapincallback, tythreadcallbacks::swapoutcallback, and threadcallbacks.

Referenced by processyield().


Variable Documentation

tythreadcallbacks threadcallbacks
 

Definition at line 51 of file threads.c.

Referenced by initmainprocessthread(), initmainthread(), and threadyield().


Generated on Wed Jun 14 04:23:12 2006 for frontierkernel 10.1.10a by  doxygen 1.4.6