libsc  2.8.7
The SC library provides support for parallel scientific applications.
All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Macros Modules Pages
Functions
sc_private.h File Reference

Support for calls between different parts of the sc library. More...

#include <sc.h>
Include dependency graph for sc_private.h:

Go to the source code of this file.

Functions

void sc_package_rc_count_add (int package_id, int toadd)
 Add to the per-package variable about active reference counters. More...
 

Detailed Description

Support for calls between different parts of the sc library.

This is not meant for use from other packages or applications.

Function Documentation

◆ sc_package_rc_count_add()

void sc_package_rc_count_add ( int  package_id,
int  toadd 
)

Add to the per-package variable about active reference counters.

This function is thread safe; it uses per-package locking internally

Parameters
[in]package_idThe id of a registered package or -1.
[in]toaddThis is added to the package's internal variable that counts active rcs. We assert that the new count does not drop below zero.