ChorusOS 5.0 Features and Architecture Overview

Private Data (PRIVATE-DATA)

The PRIVATE-DATA API implements a high-level interface for management of private per-thread data in the actor address space. It also provides a per-actor data service for supervisor actors only. This service is complemented by POSIX libraries, that are defined in the POSIX-THREADS(5FEA) feature, for example pthread_key_create(3POSIX) and pthread_setspecific(3POSIX).

For details, see the PRIVATE-DATA(5FEA) man page.

Private Data API

The PRIVATE-DATA API is summarized in the following table:

Function 

Description 

padGet()

Return actor-specific value associated with key 

padKeyCreate()

Create an actor private key 

padKeyDelete()

Delete an actor private key 

padSet()

Set actor key-specific value 

ptdErrnoAddr()

Return thread-specific errno address

ptdGet()

Return thread-specific value associated with key 

ptdKeyCreate()

Create a thread-specific data key 

ptdKeyDelete()

Delete a thread-specific data key 

ptdRemoteGet()

Return a thread-specific data value for another thread 

ptdRemoteSet()

Set a thread-specific data value for another thread 

ptdSet()

Set a thread-specific value 

ptdThreadDelete()

Delete all thread-specific values and call destructors 

ptdThreadId()

Return the thread ID