Switch to unified view

a/src/index/rclmon.h b/src/index/rclmon.h
1
#ifndef _RCLMON_H_INCLUDED_
1
#ifndef _RCLMON_H_INCLUDED_
2
#define _RCLMON_H_INCLUDED_
2
#define _RCLMON_H_INCLUDED_
3
#include "autoconfig.h"
3
#include "autoconfig.h"
4
#ifdef RCL_MONITOR
4
#ifdef RCL_MONITOR
5
/* @(#$Id: rclmon.h,v 1.4 2006-10-24 12:48:08 dockes Exp $  (C) 2006 J.F.Dockes */
5
/* @(#$Id: rclmon.h,v 1.5 2006-10-24 14:28:38 dockes Exp $  (C) 2006 J.F.Dockes */
6
/**
6
/**
7
 * Definitions for the real-time monitoring recoll. 
7
 * Definitions for the real-time monitoring recoll. 
8
 * We're interested in file modifications, deletions and renaming.
8
 * We're interested in file modifications, deletions and renaming.
9
 * We use two threads, one to receive events from the source, the
9
 * We use two threads, one to receive events from the source, the
10
 * other to perform adequate processing.
10
 * other to perform adequate processing.
...
...
47
 public:
47
 public:
48
    RclMonEventQueue();
48
    RclMonEventQueue();
49
    ~RclMonEventQueue();
49
    ~RclMonEventQueue();
50
    /** Unlock queue and wait until there are new events. 
50
    /** Unlock queue and wait until there are new events. 
51
     *  Returns with the queue locked */
51
     *  Returns with the queue locked */
52
    bool wait();
52
    bool wait(int secs = -1, bool *timedout = 0);
53
    /** Unlock queue */
53
    /** Unlock queue */
54
    bool unlock();
54
    bool unlock();
55
    /** Lock queue. */
55
    /** Lock queue. */
56
    bool lock();
56
    bool lock();
57
    /** Lock queue and add event. */
57
    /** Lock queue and add event. */