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


Back to top


Copyright ©2008 Nokia Corporation. All rights reserved. This documentation can be used in the connection with this Product to help and support the user.