Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(968)

Side by Side Diff: nspr/pr/src/threads/prdump.c

Issue 1019063003: Update to NSPR 4.10.8 (Closed) Base URL: https://chromium.googlesource.com/chromium/deps/nss.git@master
Patch Set: README bump Created 5 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « nspr/pr/src/threads/combined/pruthr.c ('k') | patches/nspr-no-pointers-in-longs.patch » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 /* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ 1 /* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
2 /* This Source Code Form is subject to the terms of the Mozilla Public 2 /* This Source Code Form is subject to the terms of the Mozilla Public
3 * License, v. 2.0. If a copy of the MPL was not distributed with this 3 * License, v. 2.0. If a copy of the MPL was not distributed with this
4 * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ 4 * file, You can obtain one at http://mozilla.org/MPL/2.0/. */
5 5
6 #include "primpl.h" 6 #include "primpl.h"
7 7
8 #if defined(WIN95) 8 #if defined(WIN95)
9 /* 9 /*
10 ** Some local variables report warnings on Win95 because the code paths 10 ** Some local variables report warnings on Win95 because the code paths
(...skipping 69 matching lines...) Expand 10 before | Expand all | Expand 10 after
80 void _PR_DumpThreads(PRFileDesc *fd) 80 void _PR_DumpThreads(PRFileDesc *fd)
81 { 81 {
82 PRThread *t; 82 PRThread *t;
83 PRIntn i; 83 PRIntn i;
84 84
85 _PR_DumpPrintf(fd, "Current Thread:\n"); 85 _PR_DumpPrintf(fd, "Current Thread:\n");
86 t = _PR_MD_CURRENT_THREAD(); 86 t = _PR_MD_CURRENT_THREAD();
87 _PR_DumpThread(fd, t); 87 _PR_DumpThread(fd, t);
88 88
89 _PR_DumpPrintf(fd, "Runnable Threads:\n"); 89 _PR_DumpPrintf(fd, "Runnable Threads:\n");
90 for (i = 0; i < 32; i++) { 90 for (i = 0; i < PR_ARRAY_SIZE(_PR_RUNQ(t->cpu)); i++) {
91 DumpThreadQueue(fd, &_PR_RUNQ(t->cpu)[i]); 91 DumpThreadQueue(fd, &_PR_RUNQ(t->cpu)[i]);
92 } 92 }
93 93
94 _PR_DumpPrintf(fd, "CondVar timed wait Threads:\n"); 94 _PR_DumpPrintf(fd, "CondVar timed wait Threads:\n");
95 DumpThreadQueue(fd, &_PR_SLEEPQ(t->cpu)); 95 DumpThreadQueue(fd, &_PR_SLEEPQ(t->cpu));
96 96
97 _PR_DumpPrintf(fd, "CondVar wait Threads:\n"); 97 _PR_DumpPrintf(fd, "CondVar wait Threads:\n");
98 DumpThreadQueue(fd, &_PR_PAUSEQ(t->cpu)); 98 DumpThreadQueue(fd, &_PR_PAUSEQ(t->cpu));
99 99
100 _PR_DumpPrintf(fd, "Suspended Threads:\n"); 100 _PR_DumpPrintf(fd, "Suspended Threads:\n");
(...skipping 11 matching lines...) Expand all
112 if ( _PR_MD_CURRENT_THREAD() 112 if ( _PR_MD_CURRENT_THREAD()
113 && !_PR_IS_NATIVE_THREAD(_PR_MD_CURRENT_THREAD())) _PR_FAST_INTSON(is); 113 && !_PR_IS_NATIVE_THREAD(_PR_MD_CURRENT_THREAD())) _PR_FAST_INTSON(is);
114 } 114 }
115 115
116 PR_IMPLEMENT(void) 116 PR_IMPLEMENT(void)
117 PR_SetThreadDumpProc(PRThread* thread, PRThreadDumpProc dump, void *arg) 117 PR_SetThreadDumpProc(PRThread* thread, PRThreadDumpProc dump, void *arg)
118 { 118 {
119 thread->dump = dump; 119 thread->dump = dump;
120 thread->dumpArg = arg; 120 thread->dumpArg = arg;
121 } 121 }
OLDNEW
« no previous file with comments | « nspr/pr/src/threads/combined/pruthr.c ('k') | patches/nspr-no-pointers-in-longs.patch » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698