summaryrefslogtreecommitdiff
path: root/ndb/test/src/NDBT_Test.cpp
diff options
context:
space:
mode:
authorunknown <jonas@eel.(none)>2005-09-09 12:54:03 +0200
committerunknown <jonas@eel.(none)>2005-09-09 12:54:03 +0200
commit011f12d01419e71252bd12c963eaa6c038e52945 (patch)
treef78ef8fd4043b73f79e883d70cf2bd1aa00353f8 /ndb/test/src/NDBT_Test.cpp
parentc9106a95374162e2e633e49fd378489fd2c535f8 (diff)
parentb1fab24ce22695221f022fd825391b2475ff0908 (diff)
downloadmariadb-git-011f12d01419e71252bd12c963eaa6c038e52945.tar.gz
Merge eel.(none):/home/jonas/src/mysql-4.1
into eel.(none):/home/jonas/src/mysql-5.0 BitKeeper/etc/ignore: auto-union ndb/test/include/NDBT_Test.hpp: Auto merged ndb/test/src/NDBT_Test.cpp: Auto merged ndb/test/ndbapi/Makefile.am: merge ndb/test/ndbapi/bank/Bank.cpp: merge ndb/test/ndbapi/bank/Bank.hpp: merge ndb/test/src/UtilTransactions.cpp: merge
Diffstat (limited to 'ndb/test/src/NDBT_Test.cpp')
-rw-r--r--ndb/test/src/NDBT_Test.cpp9
1 files changed, 9 insertions, 0 deletions
diff --git a/ndb/test/src/NDBT_Test.cpp b/ndb/test/src/NDBT_Test.cpp
index 7fd92db533e..8fecf56531f 100644
--- a/ndb/test/src/NDBT_Test.cpp
+++ b/ndb/test/src/NDBT_Test.cpp
@@ -148,6 +148,15 @@ NDBT_Context::decProperty(const char * name){
NdbCondition_Broadcast(propertyCondPtr);
NdbMutex_Unlock(propertyMutexPtr);
}
+void
+NDBT_Context::incProperty(const char * name){
+ NdbMutex_Lock(propertyMutexPtr);
+ Uint32 val = 0;
+ props.get(name, &val);
+ props.put(name, (val + 1), true);
+ NdbCondition_Broadcast(propertyCondPtr);
+ NdbMutex_Unlock(propertyMutexPtr);
+}
void NDBT_Context::setProperty(const char* _name, const char* _val){
NdbMutex_Lock(propertyMutexPtr);