Coverage Report

Created: 2026-10-06 06:17

next uncovered line (L), next uncovered region (R), next uncovered branch (B)
/src/nspr/pr/src/pthreads/ptmisc.c
Line
Count
Source
1
/* This Source Code Form is subject to the terms of the Mozilla Public
2
 * License, v. 2.0. If a copy of the MPL was not distributed with this
3
 * file, You can obtain one at http://mozilla.org/MPL/2.0/. */
4
5
/*
6
** File:   ptmisc.c
7
** Descritpion:  Implemenation of miscellaneous methods for pthreads
8
*/
9
10
#if defined(_PR_PTHREADS)
11
12
#  include "primpl.h"
13
14
#  include <stdio.h>
15
#  ifdef SOLARIS
16
#    include <thread.h>
17
#  endif
18
19
#  define PT_LOG(f)
20
21
21
void _PR_InitCPUs(void) { PT_LOG("_PR_InitCPUs") }
22
21
void _PR_InitStacks(void){PT_LOG("_PR_InitStacks")}
23
24
0
PR_IMPLEMENT(void) PR_SetConcurrency(PRUintn numCPUs) {
25
#  ifdef SOLARIS
26
  thr_setconcurrency(numCPUs);
27
#  else
28
0
  PT_LOG("PR_SetConcurrency");
29
0
#  endif
30
0
}
31
32
0
PR_IMPLEMENT(void) PR_SetThreadRecycleMode(PRUint32 flag) {
33
0
  PT_LOG("PR_SetThreadRecycleMode")
34
0
}
35
36
#endif /* defined(_PR_PTHREADS) */
37
38
/* ptmisc.c */