Is there any similar API like windows's SetTimer() in Linux?

Hi!

In Windows API, there is a function settimer() which takes a callback function as input argument. When the timer expires, the callback will be called. But in Linux, I just found OS will send a event to the process.

Is there any similar API like Window's SetTimer()?

BRs, // Charlie

Reply to
Charlie
Loading thread data ...

Which in turn will be caught by a registered signal handler --- so where's the big difference you're worried about?

Or, to put it differently: which exact Linux API function are you even talking about?

--
Hans-Bernhard Broeker (broeker@physik.rwth-aachen.de)
Even if all the snow were burnt, ashes would remain.
Reply to
Hans-Bernhard Broeker

ElectronDepot website is not affiliated with any of the manufacturers or service providers discussed here. All logos and trade names are the property of their respective owners.