Is there a problem for calling pthread_mutex_init() before starting posix thread task ?

Sebastian Huber sebastian.huber at embedded-brains.de
Mon Apr 14 10:49:18 UTC 2014


On 2014-04-14 12:37, Thomas Kim wrote:
> Dear Sir,
>
> I am tring to integrate C++ software Sparc simulator with enabling posix option
> for university lab project.
>
> Because pthread_mutex_init() is used on C++ constructor, pthread_mutex_init()
> is called in _init().
>
> That is, pthread_mutex_init() is called before starting pthread task.
> Also, pthread_mutex_init() return decimal "11" in this case.
>
> Do you know meaning about return value decimal "11" in calling
> pthread_mutex_init() ?

http://pubs.opengroup.org/onlinepubs/7908799/xsh/pthread_mutex_init.html

>
> I would like to want to know that there is a problem for calling
> pthread_mutex_init() before starting pthread task.

http://rtems.org/onlinedocs/doc-current/share/rtems/html/c_user/Configuring-a-System.html#Configuring-a-System

-- 
Sebastian Huber, embedded brains GmbH

Address : Dornierstr. 4, D-82178 Puchheim, Germany
Phone   : +49 89 189 47 41-16
Fax     : +49 89 189 47 41-09
E-Mail  : sebastian.huber at embedded-brains.de
PGP     : Public key available on request.

Diese Nachricht ist keine geschäftliche Mitteilung im Sinne des EHUG.



More information about the users mailing list