OpenDNSSEC-signer
2.0.3
|
#include "config.h"
#include <stdio.h>
#include <time.h>
#include <ldns/ldns.h>
#include "daemon/worker.h"
#include "locks.h"
#include "status.h"
Go to the source code of this file.
Data Structures | |
struct | fifoq_struct |
Macros | |
#define | FIFOQ_MAX_COUNT 1000 |
#define | FIFOQ_TRIES_COUNT 10 |
Typedefs | |
typedef struct fifoq_struct | fifoq_type |
Functions | |
fifoq_type * | fifoq_create (void) |
void | fifoq_wipe (fifoq_type *q) |
void * | fifoq_pop (fifoq_type *q, worker_type **worker) |
ods_status | fifoq_push (fifoq_type *q, void *item, worker_type *worker, int *tries) |
void | fifoq_cleanup (fifoq_type *q) |
#define FIFOQ_MAX_COUNT 1000 |
Definition at line 54 of file fifoq.h.
Referenced by fifoq_pop(), fifoq_push(), and fifoq_wipe().
#define FIFOQ_TRIES_COUNT 10 |
Definition at line 55 of file fifoq.h.
Referenced by fifoq_push().
typedef struct fifoq_struct fifoq_type |
void fifoq_cleanup | ( | fifoq_type * | q | ) |
Clean up queue.
[in] | q | queue to be cleaned up |
Clean up queue.
Definition at line 153 of file fifoq.c.
References fifoq_struct::q_lock, fifoq_struct::q_nonfull, and fifoq_struct::q_threshold.
Referenced by engine_cleanup().
fifoq_type* fifoq_create | ( | void | ) |
void* fifoq_pop | ( | fifoq_type * | q, |
worker_type ** | worker | ||
) |
Pop item from queue.
[in] | q | queue |
[out] | worker | worker that owns the item |
Pop item from queue.
Notify waiting workers that they can start queuing again If no workers are waiting, this call has no effect.
Definition at line 84 of file fifoq.c.
References fifoq_struct::blob, fifoq_struct::count, FIFOQ_MAX_COUNT, fifoq_struct::owner, and fifoq_struct::q_nonfull.
ods_status fifoq_push | ( | fifoq_type * | q, |
void * | item, | ||
worker_type * | worker, | ||
int * | tries | ||
) |
Push item to queue.
[in] | q | queue |
[in] | item | item |
[in] | worker | owner of item |
[out] | tries | number of tries |
Push item to queue.
#262: If drudgers remain on hold, do additional broadcast. If no drudgers are waiting, this call has no effect.
Definition at line 114 of file fifoq.c.
References fifoq_struct::count, FIFOQ_MAX_COUNT, FIFOQ_TRIES_COUNT, and fifoq_struct::q_threshold.
void fifoq_wipe | ( | fifoq_type * | q | ) |
Wipe queue.
[in] | q | queue to be wiped |
Wipe queue.
Definition at line 68 of file fifoq.c.
References fifoq_struct::blob, fifoq_struct::count, FIFOQ_MAX_COUNT, and fifoq_struct::owner.