In order to make transactions available not only to a glo::Communicator, but also to individual threads of the glo::Communicator, objects of this class combine the two pieces of information and can thus be used as an indicator.
The same applies to locking objects.
More...
#include <GloTransactionOwner.h>
In order to make transactions available not only to a glo::Communicator, but also to individual threads of the glo::Communicator, objects of this class combine the two pieces of information and can thus be used as an indicator.
The same applies to locking objects.
- Copyright
- © 2024 Helmut Jakoby
- Author
- Helmut Jakoby
◆ TransactionOwner() [1/3]
glo::TransactionOwner::TransactionOwner |
( |
| ) |
|
◆ TransactionOwner() [2/3]
glo::TransactionOwner::TransactionOwner |
( |
Communicator * | pCommunicator, |
|
|
NUM_PTR | ipThreadID ) |
Constructor with parameter passing.
- Parameters
-
[in] | pCommunicator | The address of a Communicator |
[in] | ipThreadID | The thread ID of the communicator thread, cast to NUM_PTR, in which a lock or release action or a transaction action was initiated. |
- See also
-
◆ TransactionOwner() [3/3]
Copy constructor.
- Parameters
-
[in] | rT | The data is copied from this object. |
◆ ~TransactionOwner()
virtual glo::TransactionOwner::~TransactionOwner |
( |
| ) |
|
|
virtual |
◆ getCommunicator()
Communicator * glo::TransactionOwner::getCommunicator |
( |
| ) |
const |
Returns a pointer to the referenced communicator.
- Returns
- See above.
- See also
- m_pCommunicator
◆ getThreadID()
NUM_PTR glo::TransactionOwner::getThreadID |
( |
| ) |
const |
Returns the thread ID of the communicator thread, cast to NUM_PTR, in which a lock or release action or a transaction action was initiated.
- Returns
- See above.
- See also
- #m_ulBaseID
◆ operator!=()
Comparison operator.
- Parameters
-
[in] | rT | The object to be compared with this one. |
◆ operator<()
The size comparison is made from the m_pCommunicator via the m_ipThreadID in this order.
- Parameters
-
[in] | rT | The object to be compared with this one. |
◆ operator<=()
The size comparison is made from the m_pCommunicator via the m_ipThreadID in this order.
- Parameters
-
[in] | rT | The object to be compared with this one. |
◆ operator=()
Assignment operator.
- Parameters
-
[in] | rT | The data is transferred from this object. |
◆ operator==()
Comparison operator.
- Parameters
-
[in] | rT | The object to be compared with this one. |
◆ operator>()
The size comparison is made from the m_pCommunicator via the m_ipThreadID in this order.
- Parameters
-
[in] | rT | The object to be compared with this one. |
◆ operator>=()
The size comparison is made from the m_pCommunicator via the m_ipThreadID in this order.
- Parameters
-
[in] | rT | The object to be compared with this one. |
◆ setAttributes()
void glo::TransactionOwner::setAttributes |
( |
Communicator * | pCommunicator, |
|
|
NUM_PTR | ipThreadID ) |
Sets the attributes of the TransactionOwner.
- Parameters
-
[in] | pCommunicator | The address of a Communicator |
[in] | ipThreadID | The thread ID of the communicator thread, cast to NUM_PTR, in which a lock or release action or a transaction action was initiated. |
- See also
-
◆ setCommunicator()
void glo::TransactionOwner::setCommunicator |
( |
Communicator * | pCommunicator | ) |
|
◆ setThreadID()
void glo::TransactionOwner::setThreadID |
( |
NUM_PTR | ipThreadID | ) |
|
Sets the thread ID.
- Parameters
-
[in] | ipThreadID | The thread ID of the communicator thread, cast to NUM_PTR, in which a lock or release action or a transaction action was initiated. |
- See also
- m_ipThreadID
◆ m_ipThreadID
NUM_PTR glo::TransactionOwner::m_ipThreadID |
|
private |
The ThreadID of the communicator thread in which a lock or release action or a transaction action was initiated.
A NUM_PTR is used because it should be possible, for example, to have a 32-bit server work with 64-bit clients.
◆ m_pCommunicator
Pointer in to the communicator that is locking Objects or in a transaction.
The documentation for this class was generated from the following file: