nsprpub/pr/src/bthreads/btmisc.c

changeset 0
6474c204b198
equal deleted inserted replaced
-1:000000000000 0:88f798006d13
1 /* -*- Mode: C++; c-basic-offset: 4 -*- */
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
4 * file, You can obtain one at http://mozilla.org/MPL/2.0/. */
5
6 #include "primpl.h"
7 #include <stdio.h>
8
9 // void _PR_InitCPUs(void) {PT_LOG("_PR_InitCPUs")}
10 // void _MD_StartInterrupts(void) {PT_LOG("_MD_StartInterrupts")}
11
12 /* this is a total hack.. */
13
14 struct protoent* getprotobyname(const char* name)
15 {
16 return 0;
17 }
18
19 struct protoent* getprotobynumber(int number)
20 {
21 return 0;
22 }
23
24 /* this is needed by prinit for some reason */
25 void
26 _PR_InitStacks (void)
27 {
28 }
29
30 /* this is needed by prinit for some reason */
31 void
32 _PR_InitTPD (void)
33 {
34 }
35
36 /*
37 ** Create extra virtual processor threads. Generally used with MP systems.
38 */
39 PR_IMPLEMENT(void)
40 PR_SetConcurrency (PRUintn numCPUs)
41 {
42 }
43
44 /*
45 ** Set thread recycle mode to on (1) or off (0)
46 */
47 PR_IMPLEMENT(void)
48 PR_SetThreadRecycleMode (PRUint32 flag)
49 {
50 }
51
52 /*
53 ** Get context registers, return with error for now.
54 */
55
56 PR_IMPLEMENT(PRWord *)
57 _MD_HomeGCRegisters( PRThread *t, int isCurrent, int *np )
58 {
59 return 0;
60 }
61
62 PR_IMPLEMENT(void *)
63 PR_GetSP( PRThread *t )
64 {
65 return 0;
66 }
67
68 PR_IMPLEMENT(PRStatus)
69 PR_EnumerateThreads( PREnumerator func, void *arg )
70 {
71 return PR_FAILURE;
72 }

mercurial