S60 Open C
libpthread API Specification

libpthread API Specification

Table of Contents

Required Capabilities

 


Required Capabilities

Some libpthread functions require the additional capabilities listed below:

Capability

Description

PowerMgmt Grants the right:
  • to kill any process in the system
  • to power off unused peripherals
  • to switch the machine into standby state
  • to wake the machine up
  • to power the machine down completely.
  • For thread termination like pthread_exit() and pthread join(), PowerMgmt is required.

    They are calling Rprocess::Terminate() internally.

Note that this does not control access to anything that might drain battery power.

The following functions require PowerMgmt capabilities:
  • pthread_create
  • pthread_detach
  • pthread_exit
  • pthread_getschedparam
  • pthread_getspecific
  • pthread_join
  • pthread_key_create
  • pthread_key_delete
  • pthread_setschedparam
ProtServ Grants the right to a server to register with a protected name. Currently, protected names start with a "!" character. The kernel prevents servers without this capability from using such a name, and therefore prevents protected servers from being impersonated. The thread create case (pthread_create() ) needs ProtServ capability. It uses the User::SetCritical () API.
The following functions require ProtServ capabilities:
  • pthread_cond_broadcast
  • pthread_cond_destroy
  • pthread_cond_init
  • pthread_cond_signal
  • pthread_cond_timedwait
  • pthread_cond_wait
  • pthread_create
  • pthread_detach
  • pthread_exit
  • pthread_getschedparam
  • pthread_getspecific
  • pthread_join
  • pthread_key_create
  • pthread_key_delete
  • pthread_mutex_destroy
  • pthread_mutex_init
  • pthread_mutex_lock
  • pthread_mutex_timedlock
  • pthread_mutex_trylock
  • pthread_mutex_unlock
  • pthread_once
  • pthread_self
  • pthread_setschedparam
  • pthread_setspecific
  • sem_destroy
  • sem_init

Give feedback of this article


©Nokia 2007

Back to top


This material, including documentation and any related computer programs, is protected by copyright controlled by Nokia. All rights are reserved. Copying, including reproducing, storing, adapting or translating, any or all of this material requires the prior written consent of Nokia. This material also contains confidential information, which may not be disclosed to others without the prior written consent of Nokia.

Nokia is a registered trademark of Nokia Corporation. S60 and logo is a trademark of Nokia Corporation. Java and all Java-based marks are trademarks or registered trademarks of Sun Microsystems, Inc. Other company and product names mentioned herein may be trademarks or tradenames of their respective owners.