The FreeRADIUS server  $Id: 15bac2a4c627c01d1aa2047687b3418955ac7f00 $
Data Structures | Enumerations | Functions
parallel_priv.h File Reference

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

#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_child_t
 Each parallel child has a state, and an associated request. More...
 
struct  unlang_parallel_state_t
 
struct  unlang_parallel_t
 

Enumerations

enum  unlang_parallel_child_state_t {
  CHILD_INIT = 0 ,
  CHILD_RUNNABLE ,
  CHILD_EXITED ,
  CHILD_DETACHED ,
  CHILD_CANCELLED ,
  CHILD_DONE
}
 Parallel child states. More...
 

Functions

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

Detailed Description

Declarations for the unlang "parallel" keyword.

Id
06c615a810e7f062e57a6e2d71aafcb206e264b6

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_child_t

struct unlang_parallel_child_t

Each parallel child has a state, and an associated request.

Definition at line 50 of file parallel_priv.h.

+ Collaboration diagram for unlang_parallel_child_t:
Data Fields
unlang_t const * instruction broken out of g->children
char * name Cache the request name.
int num The child number.
request_t * request Child request.
unlang_parallel_child_state_t state State of the child.

◆ unlang_parallel_state_t

struct unlang_parallel_state_t

Definition at line 59 of file parallel_priv.h.

+ Collaboration diagram for unlang_parallel_state_t:
Data Fields
unlang_parallel_child_t children[] Array of children.
bool clone are the children cloned
bool detach are we creating the child detached
int num_children How many children are executing.
int num_complete How many children are complete.
int priority
rlm_rcode_t result

◆ unlang_parallel_t

struct unlang_parallel_t

Definition at line 72 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

Enumeration Type Documentation

◆ unlang_parallel_child_state_t

Parallel child states.

Enumerator
CHILD_INIT 

Initial state.

CHILD_RUNNABLE 

Running/runnable.

CHILD_EXITED 

Child has exited.

CHILD_DETACHED 

Child has detached.

CHILD_CANCELLED 

Child was cancelled.

CHILD_DONE 

The child has completed.

Definition at line 38 of file parallel_priv.h.

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 81 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 89 of file parallel_priv.h.