summaryrefslogtreecommitdiffstats
path: root/nsprpub/pr/tests/attach.c
diff options
context:
space:
mode:
authorwolfbeast <mcwerewolf@gmail.com>2018-02-23 11:03:38 +0100
committerwolfbeast <mcwerewolf@gmail.com>2018-06-05 22:23:36 +0200
commit75b3dd4cbffb6e4534128278300ed6c8a3ab7506 (patch)
treec09fcfbd7a6a3aa67c970934c09b087e7950d83f /nsprpub/pr/tests/attach.c
parenta421f38160599152cd409e4fabd434a224f78487 (diff)
downloadUXP-75b3dd4cbffb6e4534128278300ed6c8a3ab7506.tar
UXP-75b3dd4cbffb6e4534128278300ed6c8a3ab7506.tar.gz
UXP-75b3dd4cbffb6e4534128278300ed6c8a3ab7506.tar.lz
UXP-75b3dd4cbffb6e4534128278300ed6c8a3ab7506.tar.xz
UXP-75b3dd4cbffb6e4534128278300ed6c8a3ab7506.zip
Update NSPR to 4.18
Diffstat (limited to 'nsprpub/pr/tests/attach.c')
-rw-r--r--nsprpub/pr/tests/attach.c12
1 files changed, 0 insertions, 12 deletions
diff --git a/nsprpub/pr/tests/attach.c b/nsprpub/pr/tests/attach.c
index a5daf9d96..a1493b8ec 100644
--- a/nsprpub/pr/tests/attach.c
+++ b/nsprpub/pr/tests/attach.c
@@ -111,16 +111,6 @@ static int32 threadStartFunc(void *arg)
static void * threadStartFunc(void *arg)
#endif
{
-#ifdef _PR_DCETHREADS
- {
- int rv;
- pthread_t self = pthread_self();
- rv = pthread_detach(&self);
- if (debug_mode) PR_ASSERT(0 == rv);
- else if (0 != rv) failed_already=1;
- }
-#endif
-
Measure(AttachDetach, "Attach/Detach");
#ifndef IRIX
@@ -206,14 +196,12 @@ int main(int argc, char **argv)
goto exit_now;
}
-#ifndef _PR_DCETHREADS
rv = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_JOINABLE);
if (debug_mode) PR_ASSERT(0 == rv);
else if (0 != rv) {
failed_already=1;
goto exit_now;
}
-#endif /* !_PR_DCETHREADS */
rv = _PT_PTHREAD_CREATE(&threadID, attr, threadStartFunc, NULL);
if (rv != 0) {
fprintf(stderr, "thread creation failed: error code %d\n", rv);