title: linux pthread - is there a way not to create all the members as static?
body: <p>I'm using pthread to create threads (in c++ application):</p>
  
  <pre><code>int result = pthread_create( &amp;thread, NULL, CMyClass::RunThread, 0);
  </code></pre>
  
  <p>and CMyClass::RunThread must be static function (in order to be compile):</p>
  
  <pre><code>static void *RunThread(void *ptr);
  </code></pre>
  
  <p>so all the class members and helper functions which are being called from RunThread, must be static too.</p>
  
  <p>It seem that I have to many (~5) static members. (seem not a good programming to me...)</p>
  
  <p>Is there a better way ? more elegant way ?</p>
  
  <p>thanks</p>