The FreeRADIUS server $Id: 15bac2a4c627c01d1aa2047687b3418955ac7f00 $
Loading...
Searching...
No Matches
Data Structures | Functions
parallel_priv.h File Reference

Declarations for the unlang "parallel" keyword. More...

#include "child_request_priv.h"
#include "unlang_priv.h"
+ Include dependency graph for parallel_priv.h:
+ This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Data Structures

struct  unlang_parallel_state_t
 
struct  unlang_parallel_t
 

Functions

static unlang_parallel_tunlang_group_to_parallel (unlang_group_t *g)
 Cast a group structure to the parallel keyword extension.
 
static unlang_group_tunlang_parallel_to_group (unlang_parallel_t *parallel)
 Cast a parallel keyword extension to a group structure.
 

Detailed Description

Declarations for the unlang "parallel" keyword.

Id
a980f5b2efed4fc9f0dc987f853568dd3874abfb

Should be moved into parallel.c when the parallel stuff is fully extracted from interpret.c

Definition in file parallel_priv.h.


Data Structure Documentation

◆ unlang_parallel_state_t

struct unlang_parallel_state_t

Definition at line 36 of file parallel_priv.h.

+ Collaboration diagram for unlang_parallel_state_t:
Data Fields
unlang_child_request_t children[] Array of children.
bool clone are the children cloned
bool detach are we creating the child detached
unlang_t * instruction The instruction the children should start executing.
unsigned int num_children How many children are executing.
unsigned int num_runnable How many children are complete.
int priority
rlm_rcode_t result

◆ unlang_parallel_t

struct unlang_parallel_t

Definition at line 52 of file parallel_priv.h.

+ Collaboration diagram for unlang_parallel_t:
Data Fields
bool clone
bool detach are we creating the child detached
unlang_group_t group

Function Documentation

◆ unlang_group_to_parallel()

static unlang_parallel_t * unlang_group_to_parallel ( unlang_group_t g)
inlinestatic

Cast a group structure to the parallel keyword extension.

Definition at line 61 of file parallel_priv.h.

+ Here is the caller graph for this function:

◆ unlang_parallel_to_group()

static unlang_group_t * unlang_parallel_to_group ( unlang_parallel_t parallel)
inlinestatic

Cast a parallel keyword extension to a group structure.

Definition at line 69 of file parallel_priv.h.