photon ~master (2024-05-04T22:18:58Z)
Dub
Repo
Timer
photon
linux
core
A fiber-friendly timer.
version(linux)
struct
Timer {
int
fd
();
static
void
duration2ts
(timespec* ts, Duration d);
void
wait
(T duration);
void
dispose
();
}
Members
Functions
dispose
void
dispose
()
Undocumented in source. Be warned that the author may not have intended to support it.
fd
int
fd
()
Undocumented in source. Be warned that the author may not have intended to support it.
wait
void
wait
(T duration)
Wait for the timer to trigger.
Static functions
duration2ts
void
duration2ts
(timespec* ts, Duration d)
Undocumented in source. Be warned that the author may not have intended to support it.
Meta
Source
See Implementation
photon
linux
core
functions
awaitAny
delay
event
go
schedulerEntry
semaphore
startloop
stoploop
timer
structs
Event
Semaphore
Timer
variables
scheds
A fiber-friendly timer.