Question: I know that you can use [embed.ly](http://embed.ly) to test your oEmbed provider service, but do you know any other services where you can test [oEmbed discovery](http://oembed.com/#section4)?

I want to make sure that oEmbed-enabled consumers can correctly tap into my oEmbed provider, but I couldn't find a way to do so.

Any help or advice is appreciated.

Answer: 
Try:

```
queue<int> *my_queue = (queue<int> *)Ptr ;
my_queue->push(byte) ;

pthread_create(&thread, NULL, &AddPacket, (void*)&queue) ; 

```

.. something along those lines, anyway
You need to change both the thread function and the thread creation:

```
// thread entry point:
void *AddPacket(void *Ptr)
{
    reinterpret_cast<std::queue<int>*>(Ptr)->push(byte);
}

```

```
// thread creation:

std::queue<int> q;
pthread_create(&thread, NULL, &AddPacket, &q);
//                                        ^^^^ **pointer** to "q";
//                                        conversion to void* is implied

```