thread-safe database classes, created instead of last modifed date in
title
This commit is contained in:
parent
419cd98cba
commit
1067fcf353
8 changed files with 28 additions and 2 deletions
|
|
@ -47,10 +47,14 @@ CrewDatabase::~CrewDatabase()
|
|||
|
||||
QStringList CrewDatabase::getCrews()
|
||||
{
|
||||
mutex.lock();
|
||||
return crewDB->childKeys();
|
||||
mutex.unlock();
|
||||
}
|
||||
|
||||
void CrewDatabase::addCrew(int crewID)
|
||||
{
|
||||
mutex.lock();
|
||||
crewDB->setValue(QString::number(crewID), crewID);
|
||||
mutex.unlock();
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue