public StReentrantLock() {
     nrlock = new StLock();
 }
Esempio n. 2
0
		internal StLock (int sc)
		{
			this = new StLock ();
			spinCount = Environment.ProcessorCount > 1 ? sc : 0;
		}
		//
		// Constructors.
		//

		public StReentrantLock(int spinCount) {
            nrlock = new StLock(spinCount);
		}