mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-11-24 19:52:54 +01:00
dba80bde3c
Eventually. llvm-svn: 10284
25 lines
867 B
C++
25 lines
867 B
C++
//===-- 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 ();
|
|
}
|