]> git.kaiwu.me - haproxy.git/commit
MINOR: tasks: Introduce __task_get_current_owner
authorOlivier Houchard <ohouchard@haproxy.com>
Tue, 28 Apr 2026 16:09:19 +0000 (18:09 +0200)
committerOlivier Houchard <cognet@ci0.org>
Fri, 12 Jun 2026 09:49:09 +0000 (11:49 +0200)
commit74b16c5477c16f8e44237d6d87ecb83945d6c289
tree315733f75fdb3436579706211d1907a0c221341d
parent8b6d8f5e4f921f5ebb60a0e18de2bd12da136dc5
MINOR: tasks: Introduce __task_get_current_owner

Introduce a new function, __task_get_current_owner, that returns the
owner of a task based on its current tid.
-1 means there is no current owner, otherwise either the tid is >= 0, in
which case it will just return it, or it's < -1, in which case it will
return -2 - tid, the tid of the thread with the current ownership.
include/haproxy/task.h