xrootd
Main Page
Namespaces
Classes
Files
File List
File Members
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Friends
Macros
src
XrdCl
XrdClUglyHacks.hh
Go to the documentation of this file.
1
//------------------------------------------------------------------------------
2
// Copyright (c) 2011-2012 by European Organization for Nuclear Research (CERN)
3
// Author: Lukasz Janyst <ljanyst@cern.ch>
4
//-----------------------------------------------------------------------------
5
// This file is part of the XRootD software suite.
6
//
7
// XRootD is free software: you can redistribute it and/or modify
8
// it under the terms of the GNU Lesser General Public License as published by
9
// the Free Software Foundation, either version 3 of the License, or
10
// (at your option) any later version.
11
//
12
// XRootD is distributed in the hope that it will be useful,
13
// but WITHOUT ANY WARRANTY; without even the implied warranty of
14
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15
// GNU General Public License for more details.
16
//
17
// You should have received a copy of the GNU Lesser General Public License
18
// along with XRootD. If not, see <http://www.gnu.org/licenses/>.
19
//
20
// In applying this licence, CERN does not waive the privileges and immunities
21
// granted to it by virtue of its status as an Intergovernmental Organization
22
// or submit itself to any jurisdiction.
23
//------------------------------------------------------------------------------
24
25
#ifndef __XRD_CL_UGLY_HACKS_HH__
26
#define __XRD_CL_UGLY_HACKS_HH__
27
28
#include "
XrdSys/XrdSysLinuxSemaphore.hh
"
29
#include "
XrdSys/XrdSysPthread.hh
"
30
31
namespace
XrdCl
32
{
33
#if defined(__linux__) && defined(HAVE_ATOMICS) && !USE_LIBC_SEMAPHORE
34
typedef
XrdSys::LinuxSemaphore
Semaphore
;
35
#else
36
typedef
XrdSysSemaphore
Semaphore
;
37
#endif
38
39
}
40
41
#endif // __XRD_CL_UGLY_HACKS_HH__
XrdSysLinuxSemaphore.hh
XrdSysPthread.hh
XrdSysSemaphore
Definition:
XrdSysPthread.hh:405
XrdCl::Semaphore
XrdSysSemaphore Semaphore
Definition:
XrdClUglyHacks.hh:36
Generated by
1.8.5