GNUnet  0.20.0
GNUNET_TESTBED_Operation Struct Reference

Opaque handle to an abstract operation to be executed by the testing framework. More...

Collaboration diagram for GNUNET_TESTBED_Operation:
[legend]

Data Fields

OperationStart start
 Function to call when we have the resources to begin the operation. More...
 
OperationRelease release
 Function to call to clean up after the operation (which may or may not have been started yet). More...
 
void * cb_cls
 Closure for callbacks. More...
 
struct OperationQueue ** queues
 Array of operation queues this Operation belongs to. More...
 
struct QueueEntry ** qentries
 Array of operation queue entries corresponding to this operation in operation queues for this operation. More...
 
unsigned int * nres
 Array of number of resources an operation need from each queue. More...
 
struct ReadyQueueEntryrq_entry
 Entry corresponding to this operation in ready queue. More...
 
struct TimeSlottslots_head
 Head pointer for DLL of tslots allocated to this operation. More...
 
struct TimeSlottslots_tail
 Tail pointer for DLL of tslots allocated to this operation. More...
 
struct GNUNET_TIME_Absolute tstart
 The time at which the operation is started. More...
 
unsigned int nqueues
 Number of queues in the operation queues array. More...
 
enum OperationState state
 The state of the operation. More...
 
int failed
 Is this a failed operation? More...
 

Detailed Description

Opaque handle to an abstract operation to be executed by the testing framework.

Definition at line 307 of file testbed_api_operations.c.

Field Documentation

◆ start

OperationStart GNUNET_TESTBED_Operation::start

Function to call when we have the resources to begin the operation.

Definition at line 312 of file testbed_api_operations.c.

◆ release

OperationRelease GNUNET_TESTBED_Operation::release

Function to call to clean up after the operation (which may or may not have been started yet).

Definition at line 318 of file testbed_api_operations.c.

Referenced by GNUNET_TESTBED_operation_create_().

◆ cb_cls

void* GNUNET_TESTBED_Operation::cb_cls

Closure for callbacks.

Definition at line 323 of file testbed_api_operations.c.

Referenced by GST_connection_pool_get_handle(), and handle_peer_create_success().

◆ queues

struct OperationQueue** GNUNET_TESTBED_Operation::queues

Array of operation queues this Operation belongs to.

Definition at line 328 of file testbed_api_operations.c.

◆ qentries

struct QueueEntry** GNUNET_TESTBED_Operation::qentries

Array of operation queue entries corresponding to this operation in operation queues for this operation.

Definition at line 334 of file testbed_api_operations.c.

◆ nres

unsigned int* GNUNET_TESTBED_Operation::nres

Array of number of resources an operation need from each queue.

The numbers in this array should correspond to the queues array

Definition at line 340 of file testbed_api_operations.c.

◆ rq_entry

struct ReadyQueueEntry* GNUNET_TESTBED_Operation::rq_entry

Entry corresponding to this operation in ready queue.

Will be NULL if the operation is not marked as READY

Definition at line 346 of file testbed_api_operations.c.

◆ tslots_head

struct TimeSlot* GNUNET_TESTBED_Operation::tslots_head

Head pointer for DLL of tslots allocated to this operation.

Definition at line 351 of file testbed_api_operations.c.

◆ tslots_tail

struct TimeSlot* GNUNET_TESTBED_Operation::tslots_tail

Tail pointer for DLL of tslots allocated to this operation.

Definition at line 356 of file testbed_api_operations.c.

◆ tstart

struct GNUNET_TIME_Absolute GNUNET_TESTBED_Operation::tstart

The time at which the operation is started.

Definition at line 356 of file testbed_api_operations.c.

◆ nqueues

unsigned int GNUNET_TESTBED_Operation::nqueues

Number of queues in the operation queues array.

Definition at line 366 of file testbed_api_operations.c.

◆ state

◆ failed

int GNUNET_TESTBED_Operation::failed

Is this a failed operation?

Definition at line 376 of file testbed_api_operations.c.


The documentation for this struct was generated from the following file: