]> git.puffer.fish Git - mirror/frr.git/commit
lib: refactor thread_execute 3087/head
authorRafael Zalamena <rzalamena@opensourcerouting.org>
Mon, 1 Oct 2018 16:38:34 +0000 (13:38 -0300)
committerRafael Zalamena <rzalamena@opensourcerouting.org>
Wed, 3 Oct 2018 19:32:11 +0000 (16:32 -0300)
commitc4345fbf71fcc7ef4b64d95979f252c613dd3ebf
treef8602546e17376868b00a169e202f6f39b13705c
parent6655966d2c2fe7a29ca29af4366fa3e044ad1170
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>
lib/thread.c