WatchdogThread
Inherits: Resource
Properties
| Type | Name | Default |
|---|---|---|
| String | name | "WatchdogThread" |
| int | target_tick_rate | 1 |
| int | warn_after_num_missed_frames | 20 |
| Thread | thread | |
| SharedThread[] | threads_to_watch | [] |
| bool | running | true |
| Mutex | mutex | |
| CustomLogger | logger |
Methods
| Returns | Signature |
|---|---|
| void | add_thread(thread: SharedThread) |
| void | stop() |
| int | get_target_frame_time(tick_rate: int) |
Property Descriptions
name
String name = "WatchdogThread"
Name of the watchdog thread
target_tick_rate
int target_tick_rate = 1
Target rate to run at in ticks per second
warn_after_num_missed_frames
int warn_after_num_missed_frames = 20
Number of missed frame times before logging a warning that a thread might be blocked
thread
Thread thread
Note
There is currently no description for this property. Please help us by contributing one!
threads_to_watch
SharedThread[] threads_to_watch = []
Note
There is currently no description for this property. Please help us by contributing one!
running
bool running = true
Note
There is currently no description for this property. Please help us by contributing one!
mutex
Mutex mutex
Note
There is currently no description for this property. Please help us by contributing one!
logger
CustomLogger logger
Note
There is currently no description for this property. Please help us by contributing one!
Method Descriptions
add_thread()
void add_thread(thread: SharedThread)
Add the given shared thread
stop()
void stop()
Stops the thread
get_target_frame_time()
int get_target_frame_time(tick_rate: int)
Returns the target frame time in microseconds of the WatchdogThread