OLD | NEW |
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 17 matching lines...) Expand all Loading... |
28 { | 28 { |
29 /* Free up per-thread-data */ | 29 /* Free up per-thread-data */ |
30 _PR_DestroyThreadPrivate(thread); | 30 _PR_DestroyThreadPrivate(thread); |
31 | 31 |
32 /* Free any thread dump procs */ | 32 /* Free any thread dump procs */ |
33 if (thread->dumpArg) { | 33 if (thread->dumpArg) { |
34 PR_DELETE(thread->dumpArg); | 34 PR_DELETE(thread->dumpArg); |
35 } | 35 } |
36 thread->dump = 0; | 36 thread->dump = 0; |
37 | 37 |
| 38 PR_DELETE(thread->name); |
38 PR_DELETE(thread->errorString); | 39 PR_DELETE(thread->errorString); |
39 thread->errorStringSize = 0; | 40 thread->errorStringSize = 0; |
40 thread->errorStringLength = 0; | 41 thread->errorStringLength = 0; |
41 thread->environment = NULL; | 42 thread->environment = NULL; |
42 } | 43 } |
43 | 44 |
44 PR_IMPLEMENT(PRStatus) PR_Yield() | 45 PR_IMPLEMENT(PRStatus) PR_Yield() |
45 { | 46 { |
46 static PRBool warning = PR_TRUE; | 47 static PRBool warning = PR_TRUE; |
47 if (warning) warning = _PR_Obsolete( | 48 if (warning) warning = _PR_Obsolete( |
(...skipping 337 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
385 | 386 |
386 PR_IMPLEMENT(PRThreadType) PR_GetThreadType(const PRThread *thread) | 387 PR_IMPLEMENT(PRThreadType) PR_GetThreadType(const PRThread *thread) |
387 { | 388 { |
388 return (thread->flags & _PR_SYSTEM) ? PR_SYSTEM_THREAD : PR_USER_THREAD; | 389 return (thread->flags & _PR_SYSTEM) ? PR_SYSTEM_THREAD : PR_USER_THREAD; |
389 } | 390 } |
390 | 391 |
391 PR_IMPLEMENT(PRThreadState) PR_GetThreadState(const PRThread *thread) | 392 PR_IMPLEMENT(PRThreadState) PR_GetThreadState(const PRThread *thread) |
392 { | 393 { |
393 return (NULL == thread->term) ? PR_UNJOINABLE_THREAD : PR_JOINABLE_THREAD; | 394 return (NULL == thread->term) ? PR_UNJOINABLE_THREAD : PR_JOINABLE_THREAD; |
394 } /* PR_GetThreadState */ | 395 } /* PR_GetThreadState */ |
OLD | NEW |