[428] in Pthreads mailing list archive
pthread->flags
daemon@ATHENA.MIT.EDU (Larry V. Streepy, Jr.)
Sat Sep 28 13:05:02 1996
Date: Sat, 28 Sep 1996 10:48:48 -0600
From: "Larry V. Streepy, Jr." <streepy@healthcare.com>
To: pthreads@MIT.EDU
I'm starting to implement "pthread_cancel" and at first glance, the
"flags" field of the pthread structure seemed the right place to store
the "cancelled" indicator. However, upon closer inspection, the flags
field isn't being used like a flags word. It is set to one of two
values: PF_WAIT_EVENT and PF_DONE_EVENT. These values are not set as
bits, they are assigned to the flags field.
So, my question is: why is this and will the world crash if I start to
really use the flags field as a set of bits? Obviously, I'll make the
proper changes to the SET/CLEAR_PF macros that already exist.
Thanks.
--
Larry V. Streepy, Jr.
Chief Technical Officer, Healthcare Communications, Inc.
mailto:streepy@healthcare.com
(214) 851-7033 (Dallas Main #)
(970) 626-5028 (My office #) (970) 626-4425 (Fax)