DTNMA Reference Tools v2.4.0 - 0.g737f35c
Delay-Tolerant Networking Management Architecture (DTNMA) Tool Suite
Loading...
Searching...
No Matches
threadset.h File Reference

Definitions for managing POSIX worker threads within a process. More...

#include "cace/config.h"
#include <m-list.h>
#include <pthread.h>
+ Include dependency graph for threadset.h:
+ This graph shows which files directly or indirectly include this file:

Data Structures

struct  cace_threadinfo_t
 A thread descriptor used to spawn and join work threads. More...
 

Functions

int cace_threadset_start (cace_threadset_t tset, const cace_threadinfo_t *info, size_t count, void *arg)
 Start a set of work threads.
 
int cace_threadset_join (cace_threadset_t tset)
 Join a set of work threads.
 

Detailed Description

Definitions for managing POSIX worker threads within a process.

Function Documentation

◆ cace_threadset_join()

int cace_threadset_join ( cace_threadset_t  tset)

Join a set of work threads.

The thread work functions must be returned from by separate control.

References CACE_LOG_ERR.

Referenced by main(), refda_agent_stop(), and refdm_mgr_stop().

◆ cace_threadset_start()

int cace_threadset_start ( cace_threadset_t  tset,
const cace_threadinfo_t *  info,
size_t  count,
void *  arg 
)

Start a set of work threads.

References CACE_LOG_ERR, and CACE_LOG_INFO.

Referenced by main(), refda_agent_start(), and refdm_mgr_start().