Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Fetching contributors…

Cannot retrieve contributors at this time

23 lines (19 sloc) 0.508 kb
#include "vm.hpp"
#include "lock.hpp"
namespace rubinius {
LockableScopedLock::LockableScopedLock(STATE, Lockable* lock,
const char* file, int line)
: thread_(state->vm())
, lock_(lock)
, locked_(false)
, recursive_(false)
{
if(lock_->mutex().locking_thread() == thread_) {
recursive_ = true;
// Don't relock, already got it locked.
} else {
lock_->lock(thread_, file, line);
locked_ = true;
}
}
}
Jump to Line
Something went wrong with that request. Please try again.