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

Thomas Kim thomas73.kim at gmail.com
Mon Apr 14 15:52:37 UTC 2014


Dear Sir,

Yes, I had mistake for configuring maximum posix mutex.

I resolved this.

Thank you very much.


2014-04-14 23:13 GMT+09:00 Joel Sherrill <joel.sherrill at oarcorp.com>:

>
> On 4/14/2014 5:49 AM, Sebastian Huber wrote:
> > 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
> That helps if you know that 11 is EAGAIN. You did not configure any
> POSIX mutexes.
>
>
> http://rtems.org/onlinedocs/doc-current/share/rtems/html/c_user/Configuring-a-System.html#Configuring-a-System
> >> 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
> >
>
> --
> Joel Sherrill, Ph.D.             Director of Research & Development
> joel.sherrill at OARcorp.com        On-Line Applications Research
> Ask me about RTEMS: a free RTOS  Huntsville AL 35805
> Support Available                (256) 722-9985
>
> _______________________________________________
> rtems-users mailing list
> rtems-users at rtems.org
> http://www.rtems.org/mailman/listinfo/rtems-users
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.rtems.org/pipermail/users/attachments/20140415/0fa2976e/attachment-0001.html>


More information about the users mailing list