mirror of
https://sourceware.org/git/glibc.git
synced 2025-01-08 18:30:18 +00:00
Macro cleanup.
Better definition of the *_NITSET macros.
This commit is contained in:
parent
52ec0eb3db
commit
bd03a1afa2
@ -1,3 +1,7 @@
|
|||||||
|
2009-07-31 Ulrich Drepper <drepper@redhat.com>
|
||||||
|
|
||||||
|
* descr.h: Better definition of *_BITMASK macros for cancellation.
|
||||||
|
|
||||||
2009-07-29 Ulrich Drepper <drepper@redhat.com>
|
2009-07-29 Ulrich Drepper <drepper@redhat.com>
|
||||||
|
|
||||||
* sysdeps/x86_64/tls.h (TLS_TCB_ALIGN): Define explicitly to 32.
|
* sysdeps/x86_64/tls.h (TLS_TCB_ALIGN): Define explicitly to 32.
|
||||||
|
16
nptl/descr.h
16
nptl/descr.h
@ -1,4 +1,4 @@
|
|||||||
/* Copyright (C) 2002-2006, 2007, 2008 Free Software Foundation, Inc.
|
/* Copyright (C) 2002-2006, 2007, 2008, 2009 Free Software Foundation, Inc.
|
||||||
This file is part of the GNU C Library.
|
This file is part of the GNU C Library.
|
||||||
Contributed by Ulrich Drepper <drepper@redhat.com>, 2002.
|
Contributed by Ulrich Drepper <drepper@redhat.com>, 2002.
|
||||||
|
|
||||||
@ -243,25 +243,25 @@ struct pthread
|
|||||||
int cancelhandling;
|
int cancelhandling;
|
||||||
/* Bit set if cancellation is disabled. */
|
/* Bit set if cancellation is disabled. */
|
||||||
#define CANCELSTATE_BIT 0
|
#define CANCELSTATE_BIT 0
|
||||||
#define CANCELSTATE_BITMASK 0x01
|
#define CANCELSTATE_BITMASK (0x01 << CANCELSTATE_BIT)
|
||||||
/* Bit set if asynchronous cancellation mode is selected. */
|
/* Bit set if asynchronous cancellation mode is selected. */
|
||||||
#define CANCELTYPE_BIT 1
|
#define CANCELTYPE_BIT 1
|
||||||
#define CANCELTYPE_BITMASK 0x02
|
#define CANCELTYPE_BITMASK (0x01 << CANCELTYPE_BIT)
|
||||||
/* Bit set if canceling has been initiated. */
|
/* Bit set if canceling has been initiated. */
|
||||||
#define CANCELING_BIT 2
|
#define CANCELING_BIT 2
|
||||||
#define CANCELING_BITMASK 0x04
|
#define CANCELING_BITMASK (0x01 << CANCELING_BIT)
|
||||||
/* Bit set if canceled. */
|
/* Bit set if canceled. */
|
||||||
#define CANCELED_BIT 3
|
#define CANCELED_BIT 3
|
||||||
#define CANCELED_BITMASK 0x08
|
#define CANCELED_BITMASK (0x01 << CANCELED_BIT)
|
||||||
/* Bit set if thread is exiting. */
|
/* Bit set if thread is exiting. */
|
||||||
#define EXITING_BIT 4
|
#define EXITING_BIT 4
|
||||||
#define EXITING_BITMASK 0x10
|
#define EXITING_BITMASK (0x01 << EXITING_BIT)
|
||||||
/* Bit set if thread terminated and TCB is freed. */
|
/* Bit set if thread terminated and TCB is freed. */
|
||||||
#define TERMINATED_BIT 5
|
#define TERMINATED_BIT 5
|
||||||
#define TERMINATED_BITMASK 0x20
|
#define TERMINATED_BITMASK (0x01 << TERMINATED_BIT)
|
||||||
/* Bit set if thread is supposed to change XID. */
|
/* Bit set if thread is supposed to change XID. */
|
||||||
#define SETXID_BIT 6
|
#define SETXID_BIT 6
|
||||||
#define SETXID_BITMASK 0x40
|
#define SETXID_BITMASK (0x01 << SETXID_BIT)
|
||||||
/* Mask for the rest. Helps the compiler to optimize. */
|
/* Mask for the rest. Helps the compiler to optimize. */
|
||||||
#define CANCEL_RESTMASK 0xffffff80
|
#define CANCEL_RESTMASK 0xffffff80
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user