mirror of
https://github.com/MariaDB/server.git
synced 2025-10-31 15:50:51 +03:00
ndb
new testprogram testSRBank
This commit is contained in:
@@ -145,6 +145,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);
|
||||
|
||||
Reference in New Issue
Block a user