Broom 1.0.0
A thread-local C++ Garbage Collector
Loading...
Searching...
No Matches
platform.cc
Go to the documentation of this file.
1#ifdef __linux__
2#include <pthread.h>
3
4#include "src/globals.h"
5#include "src/macros.h"
7
8namespace broom {
9namespace platform {
10void* GetStackBottom() {
13 if (error != 0) {
15 return nullptr;
16 }
17 void* stack_base;
18 size_t stack_size;
20 BENSURE_EQ(error, 0, "Unexpected pthread error");
23}
24} // namespace platform
25} // namespace broom
26#endif
#define BENSURE_EQ(lhs, rhs, m,...)
Definition macros.h:26
void * GetStackBottom()
std::queue< T, broom::deque< T > > queue
Definition broom-queue.h:12