Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- char testi[256] = {};
- for (int ix = 0; ix != 20; ix++)
- {
- sprintf(testi, "test%d", ix);
- g_async_queue_push(queue, testi);
- }
- char *x = (char*)g_async_queue_pop(queue);
- while (x)
- {
- cout << x << endl;
- x = (char*)g_async_queue_pop(queue);
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement