diff options
| author | Rich Hickey <richhickey@gmail.com> | 2006-06-10 18:53:44 +0000 |
|---|---|---|
| committer | Rich Hickey <richhickey@gmail.com> | 2006-06-10 18:53:44 +0000 |
| commit | ffa804456f68b721997a1a12fa98d8c9cb9d0079 (patch) | |
| tree | 6842ad5bc0aa82b9a426f10c6fa905496e3d7bbe /src/cli/runtime/Transaction.cs | |
| parent | 37ac3ad43d5dd08fddcbe701c82d3f28ac8f6261 (diff) | |
interim checkin, removed tld passing from IFn
Diffstat (limited to 'src/cli/runtime/Transaction.cs')
| -rw-r--r-- | src/cli/runtime/Transaction.cs | 20 |
1 files changed, 10 insertions, 10 deletions
diff --git a/src/cli/runtime/Transaction.cs b/src/cli/runtime/Transaction.cs index e3490548..dc328ab7 100644 --- a/src/cli/runtime/Transaction.cs +++ b/src/cli/runtime/Transaction.cs @@ -62,27 +62,27 @@ static public Object runInTransaction(ThreadLocalData tld,IFn fn) { }
}
-static public TRef tref(ThreadLocalData tld, Object val) {
- Transaction trans = tld.getTransaction();
+static public TRef tref(Object val) {
+ Transaction trans = ThreadLocalData.get().getTransaction();
TRef tref = new TRef();
trans.set(tref, val);
return tref;
}
-static public Object get(ThreadLocalData tld, TRef tref) {
- return tld.getTransaction().get(tref);
+static public Object get2(TRef tref) {
+ return ThreadLocalData.get().getTransaction().get(tref);
}
-static public Object set(ThreadLocalData tld, TRef tref, Object val) {
- return tld.getTransaction().set(tref,val);
+static public Object set2(TRef tref, Object val) {
+ return ThreadLocalData.get().getTransaction().set(tref,val);
}
-static public void touch(ThreadLocalData tld, TRef tref) {
- tld.getTransaction().touch(tref);
+static public void touch2(TRef tref) {
+ ThreadLocalData.get().getTransaction().touch(tref);
}
-static public void commutate(ThreadLocalData tld, TRef tref, IFn fn) {
- tld.getTransaction().commutate(tref, fn);
+static public void commutate2(TRef tref, IFn fn) {
+ ThreadLocalData.get().getTransaction().commutate(tref, fn);
}
|
