Advertisement
Guest User

Untitled

a guest
Jun 22nd, 2017
47
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.49 KB | None | 0 0
  1. char testi[256] = {};
  2. for (int ix = 0; ix != 20; ix++)
  3. {
  4. sprintf(testi, "test%d", ix);
  5. g_async_queue_push(queue, testi);
  6. }
  7. char *x = (char*)g_async_queue_pop(queue);
  8. while (x)
  9. {
  10. cout << x << endl;
  11. x = (char*)g_async_queue_pop(queue);
  12. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement