[vlc-commits] vlccore: return EAGAIN on vlc_threadvar_create() failure on OS/2
KO Myung-Hun
git at videolan.org
Sat Mar 2 17:20:45 CET 2013
vlc | branch: master | KO Myung-Hun <komh78 at gmail.com> | Sun Mar 3 00:11:06 2013 +0900| [bb449cfcbd4f97ce5465cc7e7331534a2b9c4663] | committer: Rémi Denis-Courmont
vlccore: return EAGAIN on vlc_threadvar_create() failure on OS/2
Like pthread.
Signed-off-by: Rémi Denis-Courmont <remi at remlab.net>
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=bb449cfcbd4f97ce5465cc7e7331534a2b9c4663
---
src/os2/thread.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/src/os2/thread.c b/src/os2/thread.c
index 07b879d..ea7c676 100644
--- a/src/os2/thread.c
+++ b/src/os2/thread.c
@@ -381,7 +381,7 @@ int vlc_threadvar_create (vlc_threadvar_t *p_tls, void (*destr) (void *))
if( rc )
{
free (var);
- return ENOMEM;
+ return EAGAIN;
}
var->destroy = destr;
More information about the vlc-commits
mailing list