mirror of
https://gitlab.freedesktop.org/xorg/xserver.git
synced 2026-01-08 21:10:16 +01:00
XQuartz: spewCallStack is noop on Tiger now...
This commit is contained in:
parent
0947aa7911
commit
56c469a68b
1 changed files with 10 additions and 2 deletions
|
|
@ -31,11 +31,14 @@
|
|||
#include "threadSafety.h"
|
||||
#include "os.h"
|
||||
|
||||
#include <execinfo.h>
|
||||
|
||||
pthread_t APPKIT_THREAD_ID;
|
||||
pthread_t SERVER_THREAD_ID;
|
||||
|
||||
#include <AvailabilityMacros.h>
|
||||
|
||||
#if MAC_OS_X_VERSION_MIN_REQUIRED >= 1050
|
||||
#include <execinfo.h>
|
||||
|
||||
void spewCallStack(void) {
|
||||
void* callstack[128];
|
||||
int i, frames = backtrace(callstack, 128);
|
||||
|
|
@ -47,6 +50,11 @@ void spewCallStack(void) {
|
|||
|
||||
free(strs);
|
||||
}
|
||||
#else
|
||||
void spewCallStack(void) {
|
||||
return;
|
||||
}
|
||||
#endif
|
||||
|
||||
void _threadSafetyAssert(pthread_t tid, const char *file, const char *fun, int line) {
|
||||
if(pthread_equal(pthread_self(), tid))
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue