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