Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #elif USE(PTHREADS)
- void* stackBase = 0;
- size_t stackSize = 0;
- #ifdef OS(HAIKU)
- int rc = pthread_attr_getstacksize(®s, &stackSize);
- #else
- int rc = pthread_attr_getstack(®s, &stackBase, &stackSize);
- #endif
- (void)rc; // FIXME: Deal with error code somehow? Seems fatal.
- ASSERT(stackBase);
- return static_cast<char*>(stackBase) + stackSize;
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement