title: Passing instantion of an object as an argument when handling new pthread
body: <p>I can create a <code>pthread</code> and pass an ID of this thread as an argument of the function that handles this new thread by this construction:</p>
  
  <pre><code> pthread_t thread;
   pthread_create(&amp;thread, NULL,
           someFunction, (void *) fd);
   // And now handle it with this
   void * someFunction(void *threadid) { }
  </code></pre>
  
  <p>But is there also any possibility, how to pass there an instantion of some object instead of that threadid?
  E.g.:</p>
  
  <pre><code>MyObject * o = new MyObject();
  pthread_t thread;
         /*and now how to pass o as an paramether, 
          *to be able to work with it later in 
          *my void * someFunction(void *threadid) { } ? 
          */
  </code></pre>