rework pa_once once again, because the once function needs to have terminated before...
commit14102ce43595b7ceadac84b56db9bba2dd651e2a
authorLennart Poettering <lennart@poettering.net>
Sat, 9 Sep 2006 23:54:19 +0000 (9 23:54 +0000)
committerLennart Poettering <lennart@poettering.net>
Sat, 9 Sep 2006 23:54:19 +0000 (9 23:54 +0000)
tree04008a17ded84a5c21664f76b0689cce74a95879
parent1f6398d3ad975f843018b46bb069c093e2c335db
rework pa_once once again, because the once function needs to have terminated before pa_once returns, regardless whether the local call executes it or another thread does.

With the previous code it might happen that an long-running initializing in a once function is not terminated yet when another thread thinks it already is.

git-svn-id: svn://svn.0pointer.net/pulseaudio/trunk@1387 fefdeb5f-60dc-0310-8127-8f9354f1896f
src/pulsecore/once-posix.c [new file with mode: 0644]
src/pulsecore/once.h