C++ Exception Support: Difference between revisions
[unchecked revision] | [unchecked revision] |
Content deleted Content added
Add a link script section (personal experience) |
Mention LIBCXXRT_WEAK_LOCKS as a way to workaround the pthread |
||
Line 47:
==pthread==
You may use the following stub for pthread, or you can just define LIBCXXRT_WEAK_LOCKS for libcxxrt, which will make libcxxrt treat all pthread functions as weak symbol, so you do not actually need to provide these functions, but only a single pthread.h with only declarations.
<source lang="cpp">
namespace { void* threadDataTable[64]; int freeEntry = 0;}
|