0
0
mirror of https://github.com/mongodb/mongo.git synced 2024-12-01 09:32:32 +01:00

stub upgradable

This commit is contained in:
dwight 2011-06-18 15:40:28 -04:00
parent aa6307640e
commit e95cab5429

View File

@ -133,10 +133,19 @@ namespace mongo {
_m.unlock();
}
void lockAsUpgradable() {
_m.lock_upgrade();
}
void unlockFromUpgradable() { // upgradable -> unlocked
_m.unlock_upgrade();
}
void upgrade() { // upgradable -> exclusive lock
_m.unlock_upgrade_and_lock();
}
void lock_shared() {
_m.lock_shared();
}
void unlock_shared() {
_m.unlock_shared();
}
@ -157,8 +166,6 @@ namespace mongo {
}
return false;
}
};
#else