#include <vtkSharedMemoryCommunicator.h>
Inheritance diagram for vtkSharedMemoryCommunicator:
This class is used together with vtkThreadedController for communication between threads. Once initialized, it creates one communicator per thread. The messages to be sent are copied to the message list of the appropriate communicator by the sending thread and then read by the receiving thread. Mutexes are used to ensure safe access to the data structures. By default, when an object is sent, it is copied with DeepCopy. This behavior can be changed by un-setting ForceDeepCopy.
Definition at line 54 of file vtkSharedMemoryCommunicator.h.
[NOHEADER] | |
virtual int | Receive (int *data, int length, int remoteThreadId, int tag) |
virtual int | Receive (unsigned long *data, int length, int remoteThreadId, int tag) |
virtual int | Receive (char *data, int length, int remoteThreadId, int tag) |
virtual int | Receive (unsigned char *data, int length, int remoteThreadId, int tag) |
virtual int | Receive (float *data, int length, int remoteThreadId, int tag) |
virtual int | Receive (double *data, int length, int remoteThreadId, int tag) |
virtual int | Receive (vtkDataObject *data, int remoteThreadId, int tag) |
virtual int | Receive (vtkDataArray *data, int remoteThreadId, int tag) |
void | Initialize (int nThreads, int forceDeepCopy) |
vtkSharedMemoryCommunicator () | |
~vtkSharedMemoryCommunicator () | |
int | Send (vtkDataObject *object, void *data, int dataLength, int remoteThreadId, int tag) |
int | Receive (vtkDataObject *object, void *data, int dataLength, int remoteThreadId, int tag) |
int | Send (vtkDataArray *object, int dataLength, int remoteThreadId, int tag) |
int | Receive (vtkDataArray *object, int dataLength, int remoteThreadId, int tag) |
vtkSharedMemoryCommunicatorMessage * | NewMessage (vtkDataObject *object, void *data, int dataLength) |
vtkSharedMemoryCommunicatorMessage * | NewMessage (vtkDataArray *object, void *data, int dataLength) |
void | DeleteMessage (vtkSharedMemoryCommunicatorMessage *message) |
void | AddMessage (vtkSharedMemoryCommunicatorMessage *message) |
vtkSharedMemoryCommunicatorMessage * | FindMessage (int sendId, int tag) |
void | SignalNewMessage (vtkSharedMemoryCommunicator *receiveCommunicator) |
void | WaitForNewMessage () |
int | NumberOfThreads |
int | Initialized |
int | LocalThreadId |
int | WaitingForId |
int | ForceDeepCopy |
vtkSimpleCriticalSection * | MessageListLock |
vtkSharedMemoryCommunicator ** | Communicators |
vtkSharedMemoryCommunicator * | Parent |
vtkSharedMemoryCommunicatorMessage * | MessageListStart |
vtkSharedMemoryCommunicatorMessage * | MessageListEnd |
vtkThreadMessager * | Messager |
Public Types | |
typedef vtkCommunicator | Superclass |
Public Member Functions | |
virtual const char * | GetClassName () |
virtual int | IsA (const char *type) |
virtual void | PrintSelf (ostream &os, vtkIndent indent) |
virtual int | Send (int *data, int length, int remoteThreadId, int tag) |
virtual int | Send (unsigned long *data, int length, int remoteThreadId, int tag) |
virtual int | Send (char *data, int length, int remoteThreadId, int tag) |
virtual int | Send (unsigned char *data, int length, int remoteThreadId, int tag) |
virtual int | Send (float *data, int length, int remoteThreadId, int tag) |
virtual int | Send (double *data, int length, int remoteThreadId, int tag) |
virtual int | Send (vtkDataObject *data, int remoteThreadId, int tag) |
virtual int | Send (vtkDataArray *data, int remoteThreadId, int tag) |
Static Public Member Functions | |
int | IsTypeOf (const char *type) |
vtkSharedMemoryCommunicator * | SafeDownCast (vtkObject *o) |
vtkSharedMemoryCommunicator * | New () |
|
Reimplemented from vtkCommunicator. Definition at line 57 of file vtkSharedMemoryCommunicator.h. |
|
This method receives data from a corresponding send. It blocks until the receive is finished. It calls methods in "data" to communicate the sending data. |
|
This method receives data from a corresponding send. It blocks until the receive is finished. It calls methods in "data" to communicate the sending data. |
|
Reimplemented from vtkCommunicator. |
|
Return 1 if this class type is the same type of (or a subclass of) the named class. Returns 0 otherwise. This method works in combination with vtkTypeRevisionMacro found in vtkSetGet.h. Reimplemented from vtkCommunicator. |
|
Return 1 if this class is the same type of (or a subclass of) the named class. Returns 0 otherwise. This method works in combination with vtkTypeRevisionMacro found in vtkSetGet.h. Reimplemented from vtkCommunicator. |
|
Reimplemented from vtkCommunicator. |
|
Creates an empty communicator. Reimplemented from vtkObject. |
|
Methods invoked by print to print information about the object including superclasses. Typically not called by the user (use Print() instead) but used in the hierarchical print process to combine the output of several classes. Reimplemented from vtkCommunicator. |
|
This method sends data to another process. Tag eliminates ambiguity when multiple sends or receives exist in the same process. Implements vtkCommunicator. |
|
This method sends data to another process. Tag eliminates ambiguity when multiple sends or receives exist in the same process. Implements vtkCommunicator. |
|
This method sends data to another process. Tag eliminates ambiguity when multiple sends or receives exist in the same process. Implements vtkCommunicator. |
|
This method sends data to another process. Tag eliminates ambiguity when multiple sends or receives exist in the same process. Implements vtkCommunicator. |
|
This method sends data to another process. Tag eliminates ambiguity when multiple sends or receives exist in the same process. Implements vtkCommunicator. |
|
This method sends data to another process. Tag eliminates ambiguity when multiple sends or receives exist in the same process. Implements vtkCommunicator. |
|
This method sends data to another process. Tag eliminates ambiguity when multiple sends or receives exist in the same process. Reimplemented from vtkCommunicator. |
|
This method sends data to another process. Tag eliminates ambiguity when multiple sends or receives exist in the same process. Reimplemented from vtkCommunicator. |
|
This method receives data from a corresponding send. It blocks until the receive is finished. It calls methods in "data" to communicate the sending data. Implements vtkCommunicator. |
|
This method receives data from a corresponding send. It blocks until the receive is finished. It calls methods in "data" to communicate the sending data. Implements vtkCommunicator. |
|
This method receives data from a corresponding send. It blocks until the receive is finished. It calls methods in "data" to communicate the sending data. Implements vtkCommunicator. |
|
This method receives data from a corresponding send. It blocks until the receive is finished. It calls methods in "data" to communicate the sending data. Implements vtkCommunicator. |
|
This method receives data from a corresponding send. It blocks until the receive is finished. It calls methods in "data" to communicate the sending data. Implements vtkCommunicator. |
|
This method receives data from a corresponding send. It blocks until the receive is finished. It calls methods in "data" to communicate the sending data. Implements vtkCommunicator. |
|
This method receives data from a corresponding send. It blocks until the receive is finished. It calls methods in "data" to communicate the sending data. Reimplemented from vtkCommunicator. |
|
This method receives data from a corresponding send. It blocks until the receive is finished. It calls methods in "data" to communicate the sending data. Reimplemented from vtkCommunicator. |
|
This method receives data from a corresponding send. It blocks until the receive is finished. It calls methods in "data" to communicate the sending data. |
|
This method receives data from a corresponding send. It blocks until the receive is finished. It calls methods in "data" to communicate the sending data. |
|
This method receives data from a corresponding send. It blocks until the receive is finished. It calls methods in "data" to communicate the sending data. |
|
This method receives data from a corresponding send. It blocks until the receive is finished. It calls methods in "data" to communicate the sending data. |
|
This method receives data from a corresponding send. It blocks until the receive is finished. It calls methods in "data" to communicate the sending data. |
|
This method receives data from a corresponding send. It blocks until the receive is finished. It calls methods in "data" to communicate the sending data. |
|
This method receives data from a corresponding send. It blocks until the receive is finished. It calls methods in "data" to communicate the sending data. |
|
This method receives data from a corresponding send. It blocks until the receive is finished. It calls methods in "data" to communicate the sending data. |
|
This method receives data from a corresponding send. It blocks until the receive is finished. It calls methods in "data" to communicate the sending data. |
|
This method receives data from a corresponding send. It blocks until the receive is finished. It calls methods in "data" to communicate the sending data. |
|
This method receives data from a corresponding send. It blocks until the receive is finished. It calls methods in "data" to communicate the sending data. |
|
This method receives data from a corresponding send. It blocks until the receive is finished. It calls methods in "data" to communicate the sending data. |
|
This method receives data from a corresponding send. It blocks until the receive is finished. It calls methods in "data" to communicate the sending data. Definition at line 113 of file vtkSharedMemoryCommunicator.h. |
|
This method receives data from a corresponding send. It blocks until the receive is finished. It calls methods in "data" to communicate the sending data. Definition at line 114 of file vtkSharedMemoryCommunicator.h. |
|
This method receives data from a corresponding send. It blocks until the receive is finished. It calls methods in "data" to communicate the sending data. Definition at line 117 of file vtkSharedMemoryCommunicator.h. |
|
This method receives data from a corresponding send. It blocks until the receive is finished. It calls methods in "data" to communicate the sending data. Definition at line 118 of file vtkSharedMemoryCommunicator.h. |
|
This method receives data from a corresponding send. It blocks until the receive is finished. It calls methods in "data" to communicate the sending data. Definition at line 120 of file vtkSharedMemoryCommunicator.h. |
|
This method receives data from a corresponding send. It blocks until the receive is finished. It calls methods in "data" to communicate the sending data. Definition at line 125 of file vtkSharedMemoryCommunicator.h. |
|
This method receives data from a corresponding send. It blocks until the receive is finished. It calls methods in "data" to communicate the sending data. Definition at line 129 of file vtkSharedMemoryCommunicator.h. |
|
This method receives data from a corresponding send. It blocks until the receive is finished. It calls methods in "data" to communicate the sending data. Definition at line 131 of file vtkSharedMemoryCommunicator.h. |
|
This method receives data from a corresponding send. It blocks until the receive is finished. It calls methods in "data" to communicate the sending data. Definition at line 134 of file vtkSharedMemoryCommunicator.h. |
|
This method receives data from a corresponding send. It blocks until the receive is finished. It calls methods in "data" to communicate the sending data. Definition at line 135 of file vtkSharedMemoryCommunicator.h. |
|
This method receives data from a corresponding send. It blocks until the receive is finished. It calls methods in "data" to communicate the sending data. Definition at line 161 of file vtkSharedMemoryCommunicator.h. |