[llvm-commits] CVS: llvm/lib/Support/Lock.cpp
Brian Gaeke
gaeke at cs.uiuc.edu
Mon Dec 1 15:34:01 PST 2003
Changes in directory llvm/lib/Support:
Lock.cpp added (r1.1)
---
Log message:
Lock abstraction, introduced with a view toward making the JIT thread-safe.
Eventually.
---
Diffs of the changes: (+24 -0)
Index: llvm/lib/Support/Lock.cpp
diff -c /dev/null llvm/lib/Support/Lock.cpp:1.1
*** /dev/null Mon Dec 1 15:33:41 2003
--- llvm/lib/Support/Lock.cpp Mon Dec 1 15:33:31 2003
***************
*** 0 ****
--- 1,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 ();
+ }
More information about the llvm-commits
mailing list