From: Ersek, Laszlo on
On Tue, 20 Apr 2010, Mark Hobley wrote:

> In comp.unix.programmer Ersek, Laszlo <lacos(a)caesar.elte.hu> wrote:
>
>> Open [0] in your browser and search for these strings:
>> - pthread_mutexattr_
>> - pthread_rwlockattr_
>
> Hmmm. Thanks for that. Unfortunately that is a really horrible set of
> documents to work with.

I'll pretend I didn't hear that. That set of documents *defines* UNIX(R).


> I can't immediately spot the answer from that.

Umm, press Ctrl-G in Firefox a few times, and when you hit clickable links
in the SEE ALSO section, leverage the middle button (or Shift-F10 + "t")
repeatedly to facilitate a breadth-first traversal of individual attribute
specifications. Is that too much work?

Cheers,
lacos
:P
From: Ersek, Laszlo on
On Tue, 20 Apr 2010, Ian Collins wrote:

> "The pthread_attr_init() function shall initialize a thread attributes
> object attr with the default value for all of the individual attributes
> used by a given implementation."
>
> So you have to go to your implementation's documentation to find the
> default values. Try man pthread_attr_init.

Hmm, pthread_attr_getdetachstate() says, "The default value of the
detachstate attribute shall be PTHREAD_CREATE_JOINABLE." I don't think
this is implementation-dependent (or rather, I hope very much it is not).
pthread_attr_getstacksize() is probably different.

Cheers,
lacos
From: Ian Collins on
On 04/20/10 12:36 PM, Ersek, Laszlo wrote:
> On Tue, 20 Apr 2010, Ian Collins wrote:
>
>> "The pthread_attr_init() function shall initialize a thread attributes
>> object attr with the default value for all of the individual
>> attributes used by a given implementation."
>>
>> So you have to go to your implementation's documentation to find the
>> default values. Try man pthread_attr_init.
>
> Hmm, pthread_attr_getdetachstate() says, "The default value of the
> detachstate attribute shall be PTHREAD_CREATE_JOINABLE." I don't think
> this is implementation-dependent (or rather, I hope very much it is
> not). pthread_attr_getstacksize() is probably different.

I think you just answered your own question, some are system specific,
others not. So he may as well check his man pages!

--
Ian Collins
First  |  Prev  | 
Pages: 1 2 3
Prev: book
Next: Does "df" modify the ext2 filesystem