01: package simpleorm.core;
02:
03: /**
04: * JAVA implementation of SThreadLocal
05: */
06: public class SThreadLocal extends java.lang.ThreadLocal {
07: }
08: /**
09: * J# implementation of SThreadLocal
10: */
11: /*
12: public class SThreadLocal {
13: System.LocalDataStoreSlot m_Ldss;
14: public SThreadLocal() {
15: this.m_Ldss = System.Threading.Thread.AllocateDataSlot();
16:
17: }
18: public synchronized void set(Object obj) {
19: System.Threading.Thread.SetData(this.m_Ldss, obj);
20: }
21: public synchronized Object get() {
22: return System.Threading.Thread.GetData(this.m_Ldss);
23: }
24: }
25: */
|