mirror of
http://git.haproxy.org/git/haproxy.git/
synced 2024-12-25 22:22:11 +00:00
430f590b5b
This will be used by the watchdog to detect that a thread locked up. It's only defined on platforms supporting it. This patch only reserves the room for the timer in the struct. A special value was reserved for the uninitialized timer. The problem is that the POSIX API was horribly designed, defining no invalid value, thus for each timer it is required to keep a second variable to indicate whether it's valid. A quick check shows that defining a 32-bit invalid value is not something uncommon across other implementations, with ~0 being common. Let's try with this and if it causes issues we can revisit this decision. |
||
---|---|---|
.. | ||
common | ||
import | ||
proto | ||
types |