Advertisement
Guest User

Untitled

a guest
Apr 6th, 2012
80
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.37 KB | None | 0 0
  1. #elif USE(PTHREADS)
  2. void* stackBase = 0;
  3. size_t stackSize = 0;
  4. #ifdef OS(HAIKU)
  5. int rc = pthread_attr_getstacksize(&regs, &stackSize);
  6. #else
  7. int rc = pthread_attr_getstack(&regs, &stackBase, &stackSize);
  8. #endif
  9. (void)rc; // FIXME: Deal with error code somehow? Seems fatal.
  10. ASSERT(stackBase);
  11. return static_cast<char*>(stackBase) + stackSize;
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement