classes/implementation/CFileEventNotifier.cpp
void CFileEventNotifier::destroyWatchTable(void)
    {
        for (auto it = m_watchMap.begin(); it != m_watchMap.end(); ++it)
        {
            if (inotify_rm_watch(m_inotifyFd, it->first) == -1)
            {
                throw std::system_error(std::error_code(errno, std::system_category()), "inotify_rm_watch() error");
            }
        }
        if (close(m_inotifyFd) == -1)
        {
            throw std::system_error(std::error_code(errno, std::system_category()), "inotify close() error");
        }
    }
// ==========================
// PUBLIC TYPES AND CONSTANTS
// ==========================
// ========================
// PRIVATE STATIC VARIABLES
// ========================
// =======================
// PUBLIC STATIC VARIABLES
// =======================
// ===============
// PRIVATE METHODS
// ===============
//
// Clean up inotify. Note: closing the inotify file descriptor cleans up all
// used resources including watch descriptors but removing them all before
// hand will cause any pending read for events to return and the watcher loop
// to stop.
//

PUBLIC TYPES AND CONSTANTS

PRIVATE STATIC VARIABLES

PUBLIC STATIC VARIABLES

PRIVATE METHODS

Clean up inotify. Note: closing the inotify file descriptor cleans up all
used resources including watch descriptors but removing them all before
hand will cause any pending read for events to return and the watcher loop
to stop.
PUBLIC TYPES AND CONSTANTS PRIVATE STATIC VARIABLES PUBLIC STATIC VARIABLES PRIVATE METHODS Clean up inotify . Note : closing the inotify file descriptor cleans up all used resources including watch descriptors but removing them all before hand will cause any pending read for events to return and the watcher loop to stop .
void CFileEventNotifier::destroyWatchTable(void)
    {
        for (auto it = m_watchMap.begin(); it != m_watchMap.end(); ++it)
        {
            if (inotify_rm_watch(m_inotifyFd, it->first) == -1)
            {
                throw std::system_error(std::error_code(errno, std::system_category()), "inotify_rm_watch() error");
            }
        }
        if (close(m_inotifyFd) == -1)
        {
            throw std::system_error(std::error_code(errno, std::system_category()), "inotify close() error");
        }
    }
void CFileEventNotifier :: destroyWatchTable ( void ) { for ( auto it = m_watchMap . begin ( ) ; it != m_watchMap . end ( ) ; ++ it ) { if ( inotify_rm_watch ( m_inotifyFd , it -> first ) == -1 ) { throw std :: system_error ( std :: error_code ( errno , std :: system_category ( ) ) , " " ) ; } } if ( close ( m_inotifyFd ) == -1 ) { throw std :: system_error ( std :: error_code ( errno , std :: system_category ( ) ) , " " ) ; } }
PUBLIC TYPES AND CONSTANTS
PUBLIC TYPES AND CONSTANTS