]> git.sesse.net Git - vlc/commit
Remove error value from locks and condvar initialization
authorRémi Denis-Courmont <remi@remlab.net>
Thu, 21 May 2009 17:06:47 +0000 (20:06 +0300)
committerRémi Denis-Courmont <remi@remlab.net>
Thu, 21 May 2009 17:06:47 +0000 (20:06 +0300)
commit50c84f608170941c787d6d74d80799ef588feca3
treebf4b30922e78662942909da540ba6ffd8454bf0a
parent7108136d1d17f0bc75e6089ae8b4898ab76fe628
Remove error value from locks and condvar initialization

On Linux, these functions cannot fail. On Windows, mutexes cannot fail
and neither can real condition varaibles (but we use events instead to
support pre-Vista versions). In practice, the needed resources are
allocated as part of the mutex structure and per-thread data.

In any case, basically none of the call sites for those functions were
checking for errors. It seems best to abort in case of error than to
hit undefined behaviour. We probably do not want to clutter the tree
with untested never used error paths.
include/vlc_threads.h
src/misc/pthread.c
src/misc/w32thread.c