]> git.puffer.fish Git - matthieu/frr.git/commit
lib: refactor thread_execute
authorRafael Zalamena <rzalamena@opensourcerouting.org>
Mon, 1 Oct 2018 16:38:34 +0000 (13:38 -0300)
committerRafael Zalamena <rzalamena@gmail.com>
Sun, 14 Oct 2018 13:07:28 +0000 (15:07 +0200)
commit6c4b622074dd5a71f351389026604aa81cbe06f3
tree931024136e3a100a78945223990ddad61ca7f468
parent20b27b067a34732bd79c78afc8164148e066591c
lib: refactor thread_execute

Don't allocate threads in the stack, but use the standardized
`thread_get` and `thread_add_unused` to avoid creating corner cases in
the thread API.

This fixes a thread mutex memory leak in FreeBSD.

Signed-off-by: Rafael Zalamena <rzalamena@opensourcerouting.org>
(cherry picked from commit c4345fbf71fcc7ef4b64d95979f252c613dd3ebf)
lib/thread.c