From be971a2b1c7828d94c41edd5cd22c1d9dcef1b6e Mon Sep 17 00:00:00 2001 From: Thomas Schwinge Date: Thu, 10 May 2012 14:50:14 -0700 Subject: Hurd: libc_once_get --- nptl/sysdeps/pthread/bits/libc-lockP.h | 2 ++ 1 file changed, 2 insertions(+) (limited to 'nptl/sysdeps') diff --git a/nptl/sysdeps/pthread/bits/libc-lockP.h b/nptl/sysdeps/pthread/bits/libc-lockP.h index d08fb9db3c..0ebac917d7 100644 --- a/nptl/sysdeps/pthread/bits/libc-lockP.h +++ b/nptl/sysdeps/pthread/bits/libc-lockP.h @@ -257,6 +257,8 @@ typedef pthread_key_t __libc_key_t; } \ } while (0) +/* Get once control variable. */ +#define __libc_once_get(ONCE_CONTROL) ((ONCE_CONTROL) != PTHREAD_ONCE_INIT) /* Note that for I/O cleanup handling we are using the old-style cancel handling. It does not have to be integrated with C++ snce -- cgit 1.4.1