mirror of
https://codeberg.org/comaps/comaps
synced 2025-12-24 15:03:47 +00:00
[core] Switch to ankerl::unordered_dense
Signed-off-by: x7z4w <x7z4w@noreply.codeberg.org>
This commit is contained in:
@@ -156,7 +156,8 @@ void Notes::CreateNote(ms::LatLon const & latLon, std::string const & text)
|
||||
void Notes::Upload(osm::OsmOAuth const & auth)
|
||||
{
|
||||
std::unique_lock<std::mutex> uploadingNotesLock(m_uploadingNotesMutex, std::defer_lock);
|
||||
if (!uploadingNotesLock.try_lock()) {
|
||||
if (!uploadingNotesLock.try_lock())
|
||||
{
|
||||
// Do not run more than one uploading task at a time.
|
||||
LOG(LDEBUG, ("OSM notes upload is already running"));
|
||||
return;
|
||||
|
||||
Reference in New Issue
Block a user