Skip to content
Snippets Groups Projects
Commit 887ef5fe authored by Ruud Overeem's avatar Ruud Overeem
Browse files

BugID: 331

Lofar_threads makes use of boost threads easier.
parent ca9c52cc
Branches
Tags
No related merge requests found
//# lofar_thread.h: basic header for the Thread package
//#
//# Copyright (C) 2002
//# ASTRON (Netherlands Foundation for Research in Astronomy)
//# P.O.Box 2, 7990 AA Dwingeloo, The Netherlands, seg@astron.nl
//#
//# This program is free software; you can redistribute it and/or modify
//# it under the terms of the GNU General Public License as published by
//# the Free Software Foundation; either version 2 of the License, or
//# (at your option) any later version.
//#
//# This program is distributed in the hope that it will be useful,
//# but WITHOUT ANY WARRANTY; without even the implied warranty of
//# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
//# GNU General Public License for more details.
//#
//# You should have received a copy of the GNU General Public License
//# along with this program; if not, write to the Free Software
//# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
//#
//# $Id$
#ifndef LOFAR_COMMON_THREAD_H
#define LOFAR_COMMON_THREAD_H
// \file lofar_thread.h
#include <boost/thread.hpp>
#include <Common/CheckConfig.h>
namespace LOFAR
{
using namespace boost::thread;
}
// You should invoke CHECK_CONFIG_THREADS(id) in every header file
// that defines a data structure that depends on USE_THREADs.
#ifdef USE_THREADS
#define CHECK_CONFIG_THREADS(id) CHECK_CONFIG(id,UseThreads,yes);
#else
#define CHECK_CONFIG_THREADS(id) CHECK_CONFIG(id,UseThreads,no);
#endif
#endif
...@@ -43,6 +43,7 @@ INSTHDRS = \ ...@@ -43,6 +43,7 @@ INSTHDRS = \
KeyValueMap.h \ KeyValueMap.h \
lofar_algorithm.h \ lofar_algorithm.h \
lofar_complex.h \ lofar_complex.h \
lofar_datetime.h \
lofar_deque.h \ lofar_deque.h \
lofar_fstream.h \ lofar_fstream.h \
lofar_global_symbol_warning.h \ lofar_global_symbol_warning.h \
...@@ -59,6 +60,7 @@ INSTHDRS = \ ...@@ -59,6 +60,7 @@ INSTHDRS = \
lofar_stack.h \ lofar_stack.h \
lofar_string.h \ lofar_string.h \
lofar_strstream.h \ lofar_strstream.h \
lofar_thread.h \
LofarTypedefs.h \ LofarTypedefs.h \
LofarTypes.h \ LofarTypes.h \
lofar_vector.h \ lofar_vector.h \
......
//# lofar_thread.h: basic header for the Thread package
//#
//# Copyright (C) 2002
//# ASTRON (Netherlands Foundation for Research in Astronomy)
//# P.O.Box 2, 7990 AA Dwingeloo, The Netherlands, seg@astron.nl
//#
//# This program is free software; you can redistribute it and/or modify
//# it under the terms of the GNU General Public License as published by
//# the Free Software Foundation; either version 2 of the License, or
//# (at your option) any later version.
//#
//# This program is distributed in the hope that it will be useful,
//# but WITHOUT ANY WARRANTY; without even the implied warranty of
//# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
//# GNU General Public License for more details.
//#
//# You should have received a copy of the GNU General Public License
//# along with this program; if not, write to the Free Software
//# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
//#
//# $Id$
#ifndef LOFAR_COMMON_THREAD_H
#define LOFAR_COMMON_THREAD_H
// \file lofar_thread.h
#include <boost/thread.hpp>
#include <Common/CheckConfig.h>
namespace LOFAR
{
using namespace boost::thread;
}
// You should invoke CHECK_CONFIG_THREADS(id) in every header file
// that defines a data structure that depends on USE_THREADs.
#ifdef USE_THREADS
#define CHECK_CONFIG_THREADS(id) CHECK_CONFIG(id,UseThreads,yes);
#else
#define CHECK_CONFIG_THREADS(id) CHECK_CONFIG(id,UseThreads,no);
#endif
#endif
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment