]> git.puffer.fish Git - mirror/frr.git/commit
lib: remove unused frr_pthread_yield()
authorDavid Lamparter <equinox@opensourcerouting.org>
Wed, 12 Sep 2018 19:25:49 +0000 (21:25 +0200)
committerDavid Lamparter <equinox@opensourcerouting.org>
Wed, 19 Sep 2018 20:01:50 +0000 (22:01 +0200)
commit64777f5d87e5e6a1b58e555f1e15849746808400
tree6bd9c29387d689f0faf18f4998837510db8b0ac2
parent1ac267a2d9b422c26d3aba0a1b1cab91fbc3394d
lib: remove unused frr_pthread_yield()

OS-level yield is generally a bad and possibly dangerous idea.  If the
thread should be suspended, there should always be something to wait on,
or it turns into busy waiting.  And if it's "just giving something else
the chance to run" - that's the kernel's job to determine, and the
kernel will do so while considering priorities, cgroups, and whatnot.
Let it do its job.

Signed-off-by: David Lamparter <equinox@diac24.net>
lib/frr_pthread.c
lib/frr_pthread.h