SimpleLock.h File Reference

Simple Spin Lock -*- C++ -*-. More...

#include "Galois/config.h"
#include "Galois/Runtime/ll/CompilerSpecific.h"
#include <cassert>

Go to the source code of this file.

Classes

class  Galois::Runtime::LL::SimpleLock< true >
class  Galois::Runtime::LL::SimpleLock< false >

Namespaces

namespace  Galois
 

Main Galois namespace.


namespace  Galois::Runtime
 

Internal Galois functionality - Use at your own risk.


namespace  Galois::Runtime::LL
 

Low-level, Galois-agnostic functionality.


Functions

void Galois::Runtime::LL::LockPairOrdered (SimpleLock< true > &L1, SimpleLock< true > &L2)
bool Galois::Runtime::LL::TryLockPairOrdered (SimpleLock< true > &L1, SimpleLock< true > &L2)
void Galois::Runtime::LL::UnLockPairOrdered (SimpleLock< true > &L1, SimpleLock< true > &L2)
void Galois::Runtime::LL::LockPairOrdered (SimpleLock< false > &L1, SimpleLock< false > &L2)
bool Galois::Runtime::LL::TryLockPairOrdered (SimpleLock< false > &L1, SimpleLock< false > &L2)
void Galois::Runtime::LL::UnLockPairOrdered (SimpleLock< false > &L1, SimpleLock< false > &L2)

Detailed Description

Simple Spin Lock -*- C++ -*-.

License

Galois, a framework to exploit amorphous data-parallelism in irregular programs.

Copyright (C) 2013, The University of Texas at Austin. All rights reserved. UNIVERSITY EXPRESSLY DISCLAIMS ANY AND ALL WARRANTIES CONCERNING THIS SOFTWARE AND DOCUMENTATION, INCLUDING ANY WARRANTIES OF MERCHANTABILITY, FITNESS FOR ANY PARTICULAR PURPOSE, NON-INFRINGEMENT AND WARRANTIES OF PERFORMANCE, AND ANY WARRANTY THAT MIGHT OTHERWISE ARISE FROM COURSE OF DEALING OR USAGE OF TRADE. NO WARRANTY IS EITHER EXPRESS OR IMPLIED WITH RESPECT TO THE USE OF THE SOFTWARE OR DOCUMENTATION. Under no circumstances shall University be liable for incidental, special, indirect, direct or consequential damages or loss of profits, interruption of business, or related expenses which may arise from use of Software or Documentation, including but not limited to those resulting from defects in Software and/or Documentation, or loss or inaccuracy of data of any kind.

Description

This contains the basic spinlock used in Galois. We use a test-and-test-and-set approach, with pause instructions on x86 and compiler barriers on unlock.

Author:
Andrew Lenharth <andrew@lenharth.org>

Generated on 2 Nov 2013 for Galois by  doxygen 1.6.1