Function ~CacheMap

Synopsis

#include <lib/inc/drogon/CacheMap.h>

~CacheMap()

Description

No description yet.

Source

Lines 128-142 in lib/inc/drogon/CacheMap.h.

~CacheMap()
{
    {
        std::lock_guard<std::mutex> guard(mtx_);
        map_.clear();
    }
    {
        std::lock_guard<std::mutex> lock(bucketMutex_);
        for (auto iter = wheels_.rbegin(); iter != wheels_.rend(); ++iter)
        {
            iter->clear();
        }
    }
    LOG_TRACE << "CacheMap destruct!";
}





Add Discussion as Guest

Log in to DocsForge