pthread_create - invalid use of non-static member function
<p>I've been trying to learn how to use threads, and I'm getting stuck on creating one. I'm having the thread get created in a class constructor like this...</p>

<pre><code>Beacon::Beacon() {
    pthread_create(&amp;send_thread,NULL, send, NULL);
}
</code></pre>

<p>The send function isn't doing anything yet, but here's what it looks like.</p>

<pre><code>void Beacon::send(void *arg){
    //Do stuff
}
</code></pre>

<p>Everytime I run the code I get an invalid use of non-static member funciton error. I've tried using &amp;send, and that didn't work. I also had the last NULL parameter set to this, but that didn't work. I've been looking at other example code to try and mimmick it, but nothing seems to work. What am I doing wrong?</p>