X-Git-Url: https://git.piment-noir.org/?a=blobdiff_plain;f=src%2Flib%2Fplatform%2Fposix%2Fos-threads.h;h=7b7fc3c118273812ee99001f99b46f2acfe26baf;hb=103eb041ef46f322b3c374da47feabab6c378004;hp=89f822b0dec300a89aee85d2f55e62871fac9080;hpb=3a99ce7f6d43f2bb1b35d7365d1ca476cd967626;p=deb_libcec.git diff --git a/src/lib/platform/posix/os-threads.h b/src/lib/platform/posix/os-threads.h index 89f822b..7b7fc3c 100644 --- a/src/lib/platform/posix/os-threads.h +++ b/src/lib/platform/posix/os-threads.h @@ -2,7 +2,7 @@ /* * This file is part of the libCEC(R) library. * - * libCEC(R) is Copyright (C) 2011-2012 Pulse-Eight Limited. All rights reserved. + * libCEC(R) is Copyright (C) 2011-2013 Pulse-Eight Limited. All rights reserved. * libCEC(R) is an original work, containing original code. * * libCEC(R) is a trademark of Pulse-Eight Limited. @@ -64,6 +64,7 @@ namespace PLATFORM } typedef pthread_t thread_t; + #define INVALID_THREAD_VALUE 0 #define ThreadsCreate(thread, func, arg) (pthread_create(&thread, NULL, (void *(*) (void *))func, (void *)arg) == 0) #define ThreadsWait(thread, retval) (thread ? pthread_join(thread, retval) == 0 : true)