Re: [Boost-bugs] [Boost C++ Libraries] #5719: pthread mutex in getnameinfo_emulation

Subject: Re: [Boost-bugs] [Boost C++ Libraries] #5719: pthread mutex in getnameinfo_emulation
From: Boost C++ Libraries (noreply_at_[hidden])
Date: 2012-05-29 02:30:35


#5719: pthread mutex in getnameinfo_emulation
----------------------------+-----------------------------------------------
  Reporter: olim@… | Owner: chris_kohlhoff
      Type: Bugs | Status: closed
 Milestone: Boost 1.48.0 | Component: asio
   Version: Boost 1.47.0 | Severity: Problem
Resolution: invalid | Keywords:
----------------------------+-----------------------------------------------
Changes (by chris_kohlhoff):

  * status: new => closed
  * resolution: => invalid

Comment:

 The whole point of PTHREAD_MUTEX_INITIALIZER is to statically initialise a
 mutex so that you don't need to call pthread_mutex_init. The POSIX spec
 for
 [http://pubs.opengroup.org/onlinepubs/9699919799/functions/pthread_mutex_init.html
 pthread_mutex_init] says:

   In cases where default mutex attributes are appropriate,
   the macro PTHREAD_MUTEX_INITIALIZER can be used to
   initialize mutexes that are statically allocated. The
   effect shall be equivalent to dynamic initialization by
   a call to pthread_mutex_init() with parameter attr
   specified as NULL, except that no error checks are
   performed.

 What platform is this? If they require this then their POSIX emulation is
 broken. If you can supply more detail then I may consider a workaround.

-- 
Ticket URL: <https://svn.boost.org/trac/boost/ticket/5719#comment:1>
Boost C++ Libraries <http://www.boost.org/>
Boost provides free peer-reviewed portable C++ source libraries.

This archive was generated by hypermail 2.1.7 : 2017-02-16 18:50:09 UTC