SourcePro® 2023.1 |
SourcePro® API Reference Guide |
#include <rw/test/dbcore/RWQEAsyncQueryLock.h>
Inherits RWQEThread.
Public Member Functions | |
RWQEAsyncQueryLock (const T &op, const RWDBConnection &conn, size_t releaseAfterMS) | |
virtual | ~RWQEAsyncQueryLock () |
bool | isComplete () |
Execute a query under a transaction, effectively locking the resource modified by the query. The query is executed under a separate thread and control is returned to the caller.
RWQEAsyncQueryLock< T >::RWQEAsyncQueryLock | ( | const T & | op, |
const RWDBConnection & | conn, | ||
size_t | releaseAfterMS | ||
) |
Spawns a thread which begins a transaction and executes op using conn. The transaction will be committed after releaseAfterMS milliseconds, assuming it has not already been committed.
|
virtual |
Commits the transaction and joins the underlying thread.
bool RWQEAsyncQueryLock< T >::isComplete | ( | ) |
Check to see if the query has completed
Copyright © 2023 Rogue Wave Software, Inc., a Perforce company. All Rights Reserved. |