corosync 3.1.8
schedwrk.c File Reference
#include <config.h>
#include <corosync/totem/totempg.h>
#include <corosync/hdb.h>
#include "schedwrk.h"
Include dependency graph for schedwrk.c:

Go to the source code of this file.

Data Structures

struct  schedwrk_instance
 

Functions

 DECLARE_HDB_DATABASE (schedwrk_instance_database, NULL)
 
void schedwrk_init (void(*serialize_lock_fn)(void), void(*serialize_unlock_fn)(void))
 
int schedwrk_create (hdb_handle_t *handle, int(schedwrk_fn)(const void *), const void *context)
 
int schedwrk_create_nolock (hdb_handle_t *handle, int(schedwrk_fn)(const void *), const void *context)
 
void schedwrk_destroy (hdb_handle_t handle)
 

Function Documentation

◆ DECLARE_HDB_DATABASE()

DECLARE_HDB_DATABASE ( schedwrk_instance_database ,
NULL  )

◆ schedwrk_create()

int schedwrk_create ( hdb_handle_t * handle,
int(schedwrk_fn)(const void *) ,
const void * context )

Definition at line 138 of file schedwrk.c.

References schedwrk_instance::context, and schedwrk_instance::schedwrk_fn.

◆ schedwrk_create_nolock()

int schedwrk_create_nolock ( hdb_handle_t * handle,
int(schedwrk_fn)(const void *) ,
const void * context )

Definition at line 146 of file schedwrk.c.

References schedwrk_instance::context, and schedwrk_instance::schedwrk_fn.

◆ schedwrk_destroy()

void schedwrk_destroy ( hdb_handle_t handle)

Definition at line 154 of file schedwrk.c.

Referenced by sync_abort().

◆ schedwrk_init()

void schedwrk_init ( void(* serialize_lock_fn )(void),
void(* serialize_unlock_fn )(void) )

Definition at line 83 of file schedwrk.c.

Referenced by main().