]> Kevux Git Server - fll/commit
Update: lock handling tweaks.
authorKevin Day <thekevinday@gmail.com>
Sat, 10 Apr 2021 00:15:07 +0000 (19:15 -0500)
committerKevin Day <thekevinday@gmail.com>
Sat, 10 Apr 2021 00:15:07 +0000 (19:15 -0500)
commit730c42f34a4e28d14ba1b4903e96630294b1d543
treef3bcd9c7ffc549f105ce0d4be980a5ed975e7056
parent4a5766c4436978aabad4473cb511dbf7623851a4
Update: lock handling tweaks.

Move the rule lock to inside the if condition block because part of the rule is still being read.

Add missing unlock for other process active lock before break.
Relocate the other process active lock in some cases to be after the last access to the rule.

Utilize process r/w locks around starting and joining the main threads.

On exit, check to see if id_exit thread is actually used before attempting to join it.
level_3/controller/c/private-rule.c
level_3/controller/c/private-thread.c