diff options
author | Martin Willi <martin@revosec.ch> | 2015-03-27 20:16:58 +0100 |
---|---|---|
committer | Martin Willi <martin@revosec.ch> | 2015-04-13 14:50:45 +0200 |
commit | 7394ad92aeeb12316fa3710d3ac2138d7cee7c6c (patch) | |
tree | dc676f359a761a9c82678e4ab4160ae64478f814 /src/libipsec/esp_context.c | |
parent | 101d67440f0b127032b3bc1ba521fa4ed91c823f (diff) | |
download | strongswan-7394ad92aeeb12316fa3710d3ac2138d7cee7c6c.tar.bz2 strongswan-7394ad92aeeb12316fa3710d3ac2138d7cee7c6c.tar.xz |
thread: Remove unneeded thread startup synchronization
sem_init() is deprecated on OS X, and it actually fails with ENOSYS. Using our
wrapped semaphore object is not an option, as it relies on the thread cleanup
that we can't rely on at this stage.
It is unclear why startup synchronization is required, as we can allocate the
thread ID just before creating the pthread. There is a chance that we allocate
a thread ID for a thread that fails to create, but the risk and consequences
are negligible.
Diffstat (limited to 'src/libipsec/esp_context.c')
0 files changed, 0 insertions, 0 deletions