PTHREAD_MUTEX_INITIALIZER being typeless
CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 2 of 2

Thread: PTHREAD_MUTEX_INITIALIZER being typeless

  1. #1
    Join Date
    Oct 2007
    Posts
    32

    PTHREAD_MUTEX_INITIALIZER being typeless

    I found a comment in code stating that PTHREAD_MUTEX_INITIALIZER is typeless then the following code:

    Code:
    const pthread_mutex_t pthread_mutex_initer = PTHREAD_MUTEX_INITIALIZER;
    then pthread_mutex_initer is used to initialize a pthread_mutex_t member variable.

    What is meant by is typeless in this context? And why do they need the above code?

    Thanks for the help.

  2. #2
    Join Date
    Nov 2003
    Posts
    1,815

    Re: PTHREAD_MUTEX_INITIALIZER being typeless

    >> then pthread_mutex_initer is used to initialize a pthread_mutex_t member variable.
    What do you mean? Simple assignment of 'pthread_mutex_initer' to another pthread_mutex_t?

    gg

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  


Windows Mobile Development Center


Click Here to Expand Forum to Full Width

This is a CodeGuru survey question.


Featured


HTML5 Development Center