threads.h File Reference

This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Data Structures

struct  tythreadcallbacks

Defines

#define idnullthread   ((hdlthread) 0)
#define idcurrentthread   ((hdlthread) 1)
#define idapplicationthread   ((hdlthread) 2)
#define checkthreadglobals()   ((void *)0)

Typedefs

typedef _thread * hdlthread
typedef void * tythreadmainparams
typedef pascal void *(* tythreadmaincallback )(tythreadmainparams)
typedef void(* tythreadglobalscallback )(void *)

Functions

boolean canusethreads (void)
boolean initmainthread (void *)
boolean inmainthread (void)
boolean attachtomainthread (long)
boolean newthread (tythreadmaincallback, tythreadmainparams, void *, hdlthread *)
boolean threadstartup (void)
void threadshutdown (void)
boolean threadsleep (hdlthread hthread)
boolean threadissleeping (hdlthread)
boolean threadwake (hdlthread, boolean)
boolean threadiswaiting (void)
boolean threadyield (boolean)
long grabthreadglobals (void)
long releasethreadglobals (void)
long grabthreadglobalsnopriority (void)
long releasethreadglobalsnopriority (void)
boolean initthreads (void)

Variables

tythreadcallbacks threadcallbacks


Define Documentation

 
#define checkthreadglobals  )     ((void *)0)
 

Definition at line 98 of file threads.h.

Referenced by langrun().

#define idapplicationthread   ((hdlthread) 2)
 

Definition at line 34 of file threads.h.

Referenced by initmainprocessthread(), inmainthread(), maimprocessvisit(), nthprocessthread(), and processpsuedothread().

#define idcurrentthread   ((hdlthread) 1)
 

Definition at line 33 of file threads.h.

#define idnullthread   ((hdlthread) 0)
 

Definition at line 32 of file threads.h.

Referenced by getthreadid().


Typedef Documentation

typedef struct _thread* hdlthread
 

Definition at line 37 of file threads.h.

typedef void(* tythreadglobalscallback)(void *)
 

Definition at line 43 of file threads.h.

typedef pascal void*(* tythreadmaincallback)(tythreadmainparams)
 

Definition at line 41 of file threads.h.

typedef void* tythreadmainparams
 

Definition at line 39 of file threads.h.


Function Documentation

boolean attachtomainthread long   ) 
 

Definition at line 260 of file threads.c.

boolean canusethreads void   ) 
 

long grabthreadglobals void   ) 
 

Referenced by activateapplication(), alertdialog(), callprocwithparams(), chardialog(), closeclipboard(), disposewindow(), dockmenugetaddresscallback(), drawmenubar(), drawscrollbar(), extCallScript(), extCallScriptText(), extCoerce(), extDoScript(), extDoScriptText(), extfrontierAlloc(), extfrontierFree(), extfrontierLock(), extfrontierReAlloc(), extfrontierSize(), extfrontierUnlock(), extInvoke(), extOdbAddListValue(), extOdbCloseFile(), extOdbCountItems(), extOdbDefined(), extOdbDelete(), extOdbDeleteListValue(), extOdbDisposeValue(), extOdbGetCurrentRoot(), extOdbGetError(), extOdbGetListCount(), extOdbGetListValue(), extOdbGetModDate(), extOdbGetNthItem(), extOdbGetType(), extOdbGetValue(), extOdbNewFile(), extOdbNewListValue(), extOdbNewTable(), extOdbOpenFile(), extOdbSaveFile(), extOdbSetListValue(), extOdbSetValue(), extThreadSleep(), extThreadYield(), FrontierFrameWndProc(), frontierfunctionvalue(), FrontierOPWndProc(), getcommonstylesmenuitemtext(), getnewwindow(), getscrap(), getstatusbarparts(), getstatusbarstring(), hidescrollbar(), hidewindow(), htmlcontrolback(), htmlcontrolsetofflinehandler(), InitializeInstance(), langopruncallbackscripts(), langzoomobject(), main(), messagebox(), notifyuser(), openwindowsparamlinefiles(), oppopupruncallbackscript(), putscrapverb(), QueryCloseAllChildren(), QueryCloseChild(), runeditmenuscript(), runfilemenuscript(), runopenrecentmenuscript(), searchfunctionvalue(), setscrollbarcurrent(), setscrollbarinfo(), setstatusbarstring(), shellhandlenullevent(), shellmaineventloop(), shellprocessevent(), shellupdatenow(), showpopupkinddialog(), showscrollbar(), showwindow(), threewaydialog(), twowaydialog(), winAskDialog(), windowgettitle(), windowsettitle(), and zoomfromorigin().

long grabthreadglobalsnopriority void   ) 
 

Referenced by checkAccepter(), fwsNetEventAbortStream(), fwsNetEventAddressToName(), fwsNetEventCloseStream(), fwsNetEventInetdRead(), fwsNetEventListenStream(), fwsNetEventMyAddress(), fwsNetEventNameToAddress(), fwsNetEventOpenNameStream(), fwsNetEventReadStream(), fwsNetEventReadStreamBytes(), fwsNetEventReadStreamUntil(), fwsNetEventReadStreamUntilClosed(), fwsNetEventWriteFileToStream(), fwsNetEventWriteHandleToStream(), fwsNetEventWriteStream(), fwsOpenStream(), fwsrunstring(), htmlcontrolnavigate(), and threadsleep().

boolean initmainthread void *   ) 
 

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 1048 of file process.c.

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

boolean newthread tythreadmaincallback  ,
tythreadmainparams  ,
void *  ,
hdlthread
 

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:

long releasethreadglobals void   ) 
 

Referenced by activateapplication(), alertdialog(), callprocwithparams(), chardialog(), closeclipboard(), disposewindow(), dockmenugetaddresscallback(), drawmenubar(), drawscrollbar(), extCallScript(), extCallScriptText(), extCoerce(), extDoScript(), extDoScriptText(), extfrontierAlloc(), extfrontierFree(), extfrontierLock(), extfrontierReAlloc(), extfrontierSize(), extfrontierUnlock(), extInvoke(), extOdbAddListValue(), extOdbCloseFile(), extOdbCountItems(), extOdbDefined(), extOdbDelete(), extOdbDeleteListValue(), extOdbDisposeValue(), extOdbGetCurrentRoot(), extOdbGetError(), extOdbGetListCount(), extOdbGetListValue(), extOdbGetModDate(), extOdbGetNthItem(), extOdbGetType(), extOdbGetValue(), extOdbNewFile(), extOdbNewListValue(), extOdbNewTable(), extOdbOpenFile(), extOdbSaveFile(), extOdbSetListValue(), extOdbSetValue(), extThreadSleep(), extThreadYield(), FrontierFrameWndProc(), frontierfunctionvalue(), FrontierOPWndProc(), getcommonstylesmenuitemtext(), getnewwindow(), getscrap(), getstatusbarparts(), getstatusbarstring(), hidescrollbar(), hidewindow(), htmlcontrolback(), htmlcontrolsetofflinehandler(), InitializeInstance(), langopruncallbackscripts(), langzoomobject(), main(), messagebox(), notifyuser(), openwindowsparamlinefiles(), oppopupruncallbackscript(), putscrapverb(), QueryCloseAllChildren(), QueryCloseChild(), runeditmenuscript(), runfilemenuscript(), runopenrecentmenuscript(), searchfunctionvalue(), setscrollbarcurrent(), setscrollbarinfo(), setstatusbarstring(), shellhandlenullevent(), shellmaineventloop(), shellprocessevent(), shellupdatenow(), showpopupkinddialog(), showscrollbar(), showwindow(), threewaydialog(), twowaydialog(), winAskDialog(), windowgettitle(), windowsettitle(), and zoomfromorigin().

long releasethreadglobalsnopriority void   ) 
 

Referenced by checkAccepter(), fwsNetEventAbortStream(), fwsNetEventAddressToName(), fwsNetEventCloseListen(), fwsNetEventCloseStream(), fwsNetEventInetdRead(), fwsNetEventListenStream(), fwsNetEventMyAddress(), fwsNetEventNameToAddress(), fwsNetEventOpenNameStream(), fwsNetEventReadStream(), fwsNetEventReadStreamBytes(), fwsNetEventReadStreamUntil(), fwsNetEventReadStreamUntilClosed(), fwsNetEventWriteFileToStream(), fwsNetEventWriteHandleToStream(), fwsNetEventWriteStream(), fwsOpenStream(), fwsrunstring(), htmlcontrolnavigate(), and threadsleep().

boolean threadissleeping hdlthread   ) 
 

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  ,
boolean 
 

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   ) 
 

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:20 2006 for frontierkernel 10.1.10a by  doxygen 1.4.6