Sack Library Documentation
ContentsIndexReferenceHome
sack::timers Namespace Macros
Macros
Name 
Description 
Adds a new periodic timer. From now, until the timer is removed with RemoveTimer, it will call the timer procedure at the specified frequency of milliseconds. The delay until the first time the timer fires can be specified independant of frequency. If it is not specified, the first time the timer will get invoked is at +1 frequency from now. 
Adds a new periodic timer. From now, until the timer is removed with RemoveTimer, it will call the timer procedure at the specified frequency of milliseconds. The delay until the first time the timer fires can be specified independant of frequency. If it is not specified, the first time the timer will get invoked is at +1 frequency from now. 
Changes the frequency of a timer. Reschedule timer only changes the next time it fires, this can adjust the frequency. The simple ChangeTimer macro is sufficient. 
Enter a critical section. Only a single thread may be in a critical section, if a second thread attempts to enter the section while another thread is in it will block until the original thread leaves the section. The same thread may enter a critical section multiple times. For each time a critical section is entered, the thread must also leave the critical section (See LeaveCriticalSection). 
This is macro sack::timers::EnterCriticalSecNoWait. 
A custom implementation of windows CRITICAL_SECTION api. Provides same capability for Linux type systems. Can be checked as a study in how to implement safe locks.
 
This tests to see if a pointer to a thread references the current thread. 
Leaves a critical section. See EnterCriticalSecEx
Symbol defined to pass to Wakeable_Sleep to sleep until someone calls WakeThread
Create a separate thread that starts in the routine specified. The PTRSZVAL value (something that might be a pointer), is passed in the PTHREAD structure. (See GetThreadParam
Create a separate thread that starts in the routine specified. The PTRSZVAL value (something that might be a pointer), is passed in the PTHREAD structure. (See GetThreadParam
Defines import export and call method for timers. Looks like timers are native calltype by default instead of CPROC
Wake a thread. 
Wake a thread by ID, if the pThread is not available. Can be used cross-process for instance. Although someone could add a method to provide a PTHREAD wrapper around THREAD_ID for threads in remote processes, this may not be a best practice. 
Created with a commercial version of Doc-O-Matic. In order to make this message disappear you need to register this software. If you have problems registering this software please contact us at support@toolsfactory.com.
Copyright (c) 2000+. All rights reserved.