MulticoreBSP for C  Version 2.0.4
Data Fields
mcbsp_util_address_table Struct Reference

A table of local address locations per SPMD variable. More...

#include <mcutil.h>

Collaboration diagram for mcbsp_util_address_table:
Collaboration graph
[legend]

Data Fields

pthread_mutex_t mutex
 Mutex for locking-out write access to the global table. More...
 
size_t cap
 Capacity. More...
 
size_t P
 Number of local versions. More...
 
struct
mcbsp_util_address_table_entry ** 
table
 Table entries. More...
 

Detailed Description

A table of local address locations per SPMD variable.

There are two resource management functions associated:

  1. mcbsp_util_address_table_initialize
  2. mcbsp_util_address_table_destroy These functions are not thread-safe.

There are three modifier functions:

  1. mcbsp_util_address_table_setsize (not thread-safe)
  2. mcbsp_util_address_table_grow (not thread-safe)
  3. mcbsp_util_address_table_set (thread-safe)

There is one accessor function:

  1. mcbsp_util_address_table_get This function is thread-safe only if no other threads execute resource management or modifier functions on the same table.

Field Documentation

size_t mcbsp_util_address_table::cap

Capacity.

pthread_mutex_t mcbsp_util_address_table::mutex

Mutex for locking-out write access to the global table.

size_t mcbsp_util_address_table::P

Number of local versions.

struct mcbsp_util_address_table_entry** mcbsp_util_address_table::table

Table entries.


The documentation for this struct was generated from the following file: