blob: 6271797da4785a4ee73280988429c5ed28a2fbdd [file] [log] [blame]
Brian Gaeke59e47e32003-12-01 21:33:31 +00001//===-- Support/Lock.cpp - Platform-agnostic mutual exclusion -------------===//
2//
3// The LLVM Compiler Infrastructure
4//
5// This file was developed by the LLVM research group and is distributed under
6// the University of Illinois Open Source License. See LICENSE.TXT for details.
7//
8//===----------------------------------------------------------------------===//
9//
10// Implementation of various methods supporting platform-agnostic lock
11// abstraction. See Support/Lock.h for details.
12//
13//===----------------------------------------------------------------------===//
14
15#include "Support/Lock.h"
16
17using namespace llvm;
18
19Lock Lock::create () {
20 // Currently we only support creating POSIX pthread_mutex_t locks.
21 // In the future we might want to construct different kinds of locks
22 // based on what OS is running.
23 return POSIXLock ();
24}