summaryrefslogtreecommitdiff
path: root/lib/Support/Mutex.cpp
blob: 6271797da4785a4ee73280988429c5ed28a2fbdd (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
//===-- Support/Lock.cpp - Platform-agnostic mutual exclusion -------------===//
// 
//                     The LLVM Compiler Infrastructure
//
// This file was developed by the LLVM research group and is distributed under
// the University of Illinois Open Source License. See LICENSE.TXT for details.
// 
//===----------------------------------------------------------------------===//
//
// Implementation of various methods supporting platform-agnostic lock
// abstraction. See Support/Lock.h for details.
//
//===----------------------------------------------------------------------===//

#include "Support/Lock.h"

using namespace llvm;

Lock Lock::create () {
  // Currently we only support creating POSIX pthread_mutex_t locks.
  // In the future we might want to construct different kinds of locks
  // based on what OS is running.
  return POSIXLock ();
}