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 __FreeBSD__
2
3#include <pthread_np.h>
4
5#include "src/globals.h"
6#include "src/macros.h"
8
9namespace broom {
10namespace platform {
11void* GetStackBottom() {
15 if (error != 0) {
17 return nullptr;
18 }
19 void* stack_base;
20 size_t stack_size;
22 BENSURE_EQ(error, 0, "Unexpected pthread error");
25}
26} // namespace platform
27} // namespace broom
28#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