Functions | |
INT32 | set_application_priority (INT32 priority) |
void | begin_realtime_mode (UINT32 delay) |
void | end_realtime_mode (void) |
void | set_high_priority (void) |
void | set_normal_priority (void) |
INT32 | in_realtime_mode (void) |
void begin_realtime_mode | ( | UINT32 | delay | ) |
Sets the application priority and cleans up pending Windows activity to place the application in realtime mode. This could take up to 100 milliseconds, depending on the operation system, to set the application priority. Use the <delay>
value to set the minimum time this function takes, so that this function can act as a useful delay.
@param delay Minimum delay in milliseconds (should be about 100). \b Example: <pre>
end_realtime_mode()
void end_realtime_mode | ( | void | ) |
Returns the application to a priority slightly above normal, to end realtime mode. This function should execute rapidly, but there is the possibility that Windows will allow other tasks to run after this call, causing delays of 1-20 milliseconds.
Example: See begin_realtime_mode()
begin_realtime_mode()
INT32 in_realtime_mode | ( | void | ) |
returns whether the current mode is real-time.
1
if in realtime mode, else 0
. INT32 set_application_priority | ( | INT32 | priority | ) |
Changes the multitasking proirity of current application Using THREAD_PRIORITY_ABOVE_NORMAL may reduce latency Reset priority with THREAD_PRIORITY_NORMAL Too high priority will stop the link from functioning!
void set_high_priority | ( | void | ) |
Raise application priority. May interfere with other applications.
void set_normal_priority | ( | void | ) |
Sets application priority to system normal