mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-08-21 03:29:40 +00:00
Eventually. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@10284 91177308-0d34-0410-b5e6-96231b3b80d8
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 ();
|
|
}
|