Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
10
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Open sidebar
Adam Jackson
xserver
Commits
56c469a6
Commit
56c469a6
authored
Nov 21, 2008
by
Jeremy Huddleston
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
XQuartz: spewCallStack is noop on Tiger now...
parent
0947aa79
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
2 deletions
+10
-2
hw/xquartz/threadSafety.c
hw/xquartz/threadSafety.c
+10
-2
No files found.
hw/xquartz/threadSafety.c
View file @
56c469a6
...
...
@@ -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
))
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment