[go: up one dir, main page]

Menu

[r189]: / tags / 0.9 / grop / lock.h  Maximize  Restore  History

Download this file

40 lines (25 with data), 689 Bytes

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
//=======================================================================
// lock.h
//-----------------------------------------------------------------------
// This file is part of the package grop
// Copyright (C) 2015 David Ricart
// For more information visit http://porg.sourceforge.net
//=======================================================================
#ifndef GROP_LOCK_H
#define GROP_LOCK_H
#include "config.h"
#include <iosfwd>
namespace Grop {
class Lock
{
public:
static void init();
protected:
Lock();
~Lock();
static void stop();
static void signal_handler(int);
static std::string const s_lockfile;
};
} // namespace Grop
#endif // GROP_LOCK_H