Pointer Spin Lock -*- C++ -*-. More...
#include "Galois/config.h"
#include "Galois/Runtime/ll/CompilerSpecific.h"
#include <stdint.h>
#include <cassert>
Go to the source code of this file.
Classes | |
class | Galois::Runtime::LL::PtrLock< T, true > |
class | Galois::Runtime::LL::PtrLock< T, 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. |
Pointer Spin Lock -*- C++ -*-.
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.
This contains the pointer-based spinlock used in Galois. We use a test-and-test-and-set approach, with pause instructions on x86 and compiler barriers on unlock. A pointer-lock uses the low-order bit in a pointer to store the lock, thus assumes a non-one-byte alignment.