summaryrefslogtreecommitdiff
path: root/test/ClientTest.cpp
diff options
context:
space:
mode:
authorPatrick Ohly <patrick.ohly@intel.com>2013-04-26 02:13:50 -0700
committerPatrick Ohly <patrick.ohly@intel.com>2013-05-13 17:49:50 +0200
commit9a3b17b82a1e5ecce56406c0be6af4d9e4b9d33f (patch)
tree5c02bc1536056b55bc1f6ccba522e0fd17774faa /test/ClientTest.cpp
parent05fb1aebc3242c0cf734f18f0582df8cb05e0999 (diff)
engine: eliminate virtual checkForSuspend/Abort()
Since the introduction of SuspendFlags, the ony remaining user of the virtual aspect of checkForSuspend/checkForAbort() was the testing code. By using the suspend/abort request mechanism in SuspendFlags, it becomes possible to move checkForSuspend/Abort() into SuspendFlags itself. This will be useful to use it outside of a SyncContext member.
Diffstat (limited to 'test/ClientTest.cpp')
-rw-r--r--test/ClientTest.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/test/ClientTest.cpp b/test/ClientTest.cpp
index 305ea27d..e6e8c285 100644
--- a/test/ClientTest.cpp
+++ b/test/ClientTest.cpp
@@ -5329,7 +5329,7 @@ public:
m_messageCount++;
if (m_interruptAtMessage >= 0 &&
m_messageCount > m_interruptAtMessage) {
- m_options->m_isSuspended = true;
+ m_options->m_isSuspended = SuspendFlags::getSuspendFlags().suspend();
}
m_wrappedAgent->getReply(data, len, contentType);
}