The FreeRADIUS server  $Id: 15bac2a4c627c01d1aa2047687b3418955ac7f00 $
Functions
parallel.c File Reference

Implementation of the unlang "parallel" keyword. More...

#include "function.h"
#include "interpret_priv.h"
#include "module_priv.h"
#include "parallel_priv.h"
#include "subrequest_priv.h"
+ Include dependency graph for parallel.c:

Go to the source code of this file.

Functions

static unlang_action_t unlang_parallel (rlm_rcode_t *p_result, request_t *request, unlang_stack_frame_t *frame)
 
static void unlang_parallel_cancel_child (unlang_parallel_state_t *state, int i)
 Cancel a specific child. More...
 
static unlang_action_t unlang_parallel_child_done (UNUSED rlm_rcode_t *p_result, UNUSED int *p_priority, request_t *request, void *uctx)
 When the chld is done, tell the parent that we've exited. More...
 
static void unlang_parallel_child_signal (request_t *request, UNUSED fr_signal_t action, void *uctx)
 Signal handler to deal with UNLANG_ACTION_DETACH. More...
 
void unlang_parallel_init (void)
 
static unlang_action_t unlang_parallel_process (rlm_rcode_t *p_result, request_t *request, unlang_stack_frame_t *frame)
 Run one or more sub-sections from the parallel section. More...
 
static unlang_action_t unlang_parallel_resume (rlm_rcode_t *p_result, request_t *request, unlang_stack_frame_t *frame)
 
static void unlang_parallel_signal (UNUSED request_t *request, unlang_stack_frame_t *frame, fr_signal_t action)
 Send a signal from parent request to all of it's children. More...
 

Detailed Description

Implementation of the unlang "parallel" keyword.

Id
db419c166c597fcbe94de8b3300e3f9eae3b8399

Definition in file parallel.c.

Function Documentation

◆ unlang_parallel()

static unlang_action_t unlang_parallel ( rlm_rcode_t p_result,
request_t request,
unlang_stack_frame_t frame 
)
static

Definition at line 443 of file parallel.c.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ unlang_parallel_cancel_child()

static void unlang_parallel_cancel_child ( unlang_parallel_state_t state,
int  i 
)
inlinestatic

Cancel a specific child.

Definition at line 37 of file parallel.c.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ unlang_parallel_child_done()

static unlang_action_t unlang_parallel_child_done ( UNUSED rlm_rcode_t p_result,
UNUSED int *  p_priority,
request_t request,
void *  uctx 
)
static

When the chld is done, tell the parent that we've exited.

Definition at line 144 of file parallel.c.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ unlang_parallel_child_signal()

static void unlang_parallel_child_signal ( request_t request,
UNUSED fr_signal_t  action,
void *  uctx 
)
static

Signal handler to deal with UNLANG_ACTION_DETACH.

When a request detaches we need

Definition at line 113 of file parallel.c.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ unlang_parallel_init()

void unlang_parallel_init ( void  )

Definition at line 493 of file parallel.c.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ unlang_parallel_process()

static unlang_action_t unlang_parallel_process ( rlm_rcode_t p_result,
request_t request,
unlang_stack_frame_t frame 
)
static

Run one or more sub-sections from the parallel section.

Definition at line 253 of file parallel.c.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ unlang_parallel_resume()

static unlang_action_t unlang_parallel_resume ( rlm_rcode_t p_result,
request_t request,
unlang_stack_frame_t frame 
)
static

Definition at line 187 of file parallel.c.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ unlang_parallel_signal()

static void unlang_parallel_signal ( UNUSED request_t request,
unlang_stack_frame_t frame,
fr_signal_t  action 
)
static

Send a signal from parent request to all of it's children.

Definition at line 421 of file parallel.c.

+ Here is the call graph for this function:
+ Here is the caller graph for this function: