diff options
author | unknown <jonas@eel.(none)> | 2005-09-09 12:54:03 +0200 |
---|---|---|
committer | unknown <jonas@eel.(none)> | 2005-09-09 12:54:03 +0200 |
commit | 011f12d01419e71252bd12c963eaa6c038e52945 (patch) | |
tree | f78ef8fd4043b73f79e883d70cf2bd1aa00353f8 /ndb/test/src/NDBT_Test.cpp | |
parent | c9106a95374162e2e633e49fd378489fd2c535f8 (diff) | |
parent | b1fab24ce22695221f022fd825391b2475ff0908 (diff) | |
download | mariadb-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.cpp | 9 |
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); |