GraphLab: Distributed Graph-Parallel API  2.1
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
graphlab::simple_spinlock Class Reference

#include <graphlab/parallel/pthread_tools.hpp>

List of all members.

Public Member Functions

 simple_spinlock ()
 constructs a spinlock
 simple_spinlock (const simple_spinlock &)
void operator= (const simple_spinlock &m)
void lock () const
 Acquires a lock on the spinlock.
void unlock () const
 Releases a lock on the spinlock.
bool try_lock () const
 Non-blocking attempt to acquire a lock on the spinlock.

Detailed Description

*If pthread spinlock is not implemented, this provides a simple alternate spin lock implementation.

Before you use, see parallel_object_intricacies.

Definition at line 126 of file pthread_tools.hpp.


Constructor & Destructor Documentation

graphlab::simple_spinlock::simple_spinlock ( const simple_spinlock )
inline
Copy constructor which does not copy. Do not use!

Required for compatibility with some STL implementations (LLVM). which use the copy constructor for vector resize, rather than the standard constructor.

Definition at line 140 of file pthread_tools.hpp.


The documentation for this class was generated from the following file: