Boost logo

Boost :

From: Alexander Terekhov (terekhov_at_[hidden])
Date: 2003-02-03 08:46:52


Shimshon Duvdevan wrote:
[...]
> So, if upgrading Solaris is not an option, I should patch boost.threads each
> time a new version is out? Isn't it easier to add a couple of #ifdefs? :)

I'd suggest that you should just wait for "a new version" that
would hopefully allow you to have something along the lines of:

  .
  .
  .
  #ifdef BROKEN_SOLARIS
                            thread::attr()
                              .set_scope( PTHREAD_SCOPE_SYSTEM )
                              . // see below
  #endif
  new_thread( routine /*, arg(s)...*/ )
  .
  .
  .
 
;-)

regards,
alexander.


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