]> git.puffer.fish Git - matthieu/frr.git/commit
lib: serialize pthread startup
authorMark Stapp <mjs@cisco.com>
Tue, 9 Apr 2024 12:51:20 +0000 (08:51 -0400)
committerMark Stapp <mjs@cisco.com>
Thu, 11 Apr 2024 13:00:58 +0000 (09:00 -0400)
commit44eb133b527dc113c75d419bf062517d8cdb3ad9
tree39b26ebb2e2d4561fc29cc506712aae05647c85a
parente19fa07c2c92a84e89d0b08cc735ac16e699b3b3
lib: serialize pthread startup

Add a new condition var and mutex to serialize pthread startup.
When a new pthread is started, it will wait very early on for the
parent pthread to permit it to run. This ensures that that the
ordering between parent and child is predictable.

Signed-off-by: Mark Stapp <mjs@cisco.com>
lib/frr_pthread.c
lib/frr_pthread.h