michael@0: /* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ michael@0: /* This Source Code Form is subject to the terms of the Mozilla Public michael@0: * License, v. 2.0. If a copy of the MPL was not distributed with this michael@0: * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ michael@0: michael@0: /* michael@0: ** File: ptmisc.c michael@0: ** Descritpion: Implemenation of miscellaneous methods for pthreads michael@0: */ michael@0: michael@0: #if defined(_PR_PTHREADS) michael@0: michael@0: #include "primpl.h" michael@0: michael@0: #include michael@0: #ifdef SOLARIS michael@0: #include michael@0: #endif michael@0: michael@0: #define PT_LOG(f) michael@0: michael@0: void _PR_InitCPUs(void) {PT_LOG("_PR_InitCPUs")} michael@0: void _PR_InitStacks(void) {PT_LOG("_PR_InitStacks")} michael@0: michael@0: PR_IMPLEMENT(void) PR_SetConcurrency(PRUintn numCPUs) michael@0: { michael@0: #ifdef SOLARIS michael@0: thr_setconcurrency(numCPUs); michael@0: #else michael@0: PT_LOG("PR_SetConcurrency"); michael@0: #endif michael@0: } michael@0: michael@0: PR_IMPLEMENT(void) PR_SetThreadRecycleMode(PRUint32 flag) michael@0: {PT_LOG("PR_SetThreadRecycleMode")} michael@0: michael@0: #endif /* defined(_PR_PTHREADS) */ michael@0: michael@0: /* ptmisc.c */