Boost logo

Boost :

From: terekhov_at_[hidden]
Date: 2001-03-15 11:03:28


--- In boost_at_y..., Eugene Karpachov <jk_at_s...> wrote:
> Thu, Mar 15, 2001 at 03:10:51PM -0000, williamkempf_at_h... ÐÉÛÅÔ:
> > > how about return code checks?
> >
> > A valid point. Someone more familiar with pthreads should
address
> > this, raising an exception in all likelyhood. Thoughts from
others?
>
> As usual with POSIX, check for -1 as error flag and inspect errno.
You could
> throw some exception object containing this errno value.
>
> --
> jk

POSIX _threads_ calls do not use errno (-1 as error flag)
ZERO return value is used as OK indication, non-zero
return value is used as spec. status (error) indication.

regards,
alexander.


Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk