Public Attributes

Layers_Processor::Thread_Data Struct Reference

Data that should be passed to each processing thread. Contains unique per-thread data and some parent data including pointer to the Layers_Processor. More...

#include <Layers_Processor.h>

Collaboration diagram for Layers_Processor::Thread_Data:
Collaboration graph
[legend]

List of all members.

Public Attributes

int layer
 Layer index the given thread is processing until the next suspend state.
int neuron
 Neuron index inside a previously defined layer the given thread is supposed to start processing with.
int increment
 Currently equal to threads_count passed to Layers_Processor constructor, used as a value neuron index is incremented each time when neuron calculation is finished.
bool terminate
 Thread termination flag. When raised thread is finishing its calculations and terminates gracefully.
Self_Locklock
 Synchronization object that belongs to the parent class (thread). Used by the parent to lock itself giving a possibility to unlock it to the sibling threads (please see Self_Lock class).
Self_Lockthread_lock
 Synchronization object that belongs to the given thread. Used by the thread to lock itself after completing calculations for a layer giving a possibility to unlock it to the parent thread to process the next layer (please see Self_Lock class).
Self_Lockthread_termination_lock
 Synchronization object that belongs to the parent class (thread). Used by the parent to lock itself while waiting for the child thread to terminate gracefully (please see Self_Lock class).
Layers_Processorlayers_processor
 Pointer to the parent.

Detailed Description

Data that should be passed to each processing thread. Contains unique per-thread data and some parent data including pointer to the Layers_Processor.

MCPN Logo
kr0st © 2010