rework pa_once once again, because the once function needs to have terminated before...
authorLennart Poettering <lennart@poettering.net>
Sat, 9 Sep 2006 23:54:19 +0000 (23:54 +0000)
committerLennart Poettering <lennart@poettering.net>
Sat, 9 Sep 2006 23:54:19 +0000 (23:54 +0000)
commitd0dcde060bb3e5fd04512d16afdd1ed71e780e08
tree04008a17ded84a5c21664f76b0689cce74a95879
parent6d532029eaac08a3b60a28752f23f0586f895168
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: file:///home/lennart/svn/public/pulseaudio/trunk@1387 fefdeb5f-60dc-0310-8127-8f9354f1896f
src/pulsecore/once-posix.c [new file with mode: 0644]
src/pulsecore/once.h