From b462a7a9d307c5f5eff30a24008045c0e3d0185a Mon Sep 17 00:00:00 2001 From: nobody Date: Tue, 1 Aug 2000 16:43:24 +0000 Subject: This commit was manufactured by cvs2svn to create tag 'TAO-1_1_7'. --- java/JACE/netsvcs/Token/MutexHandler.java | 51 ------------------------------- 1 file changed, 51 deletions(-) delete mode 100644 java/JACE/netsvcs/Token/MutexHandler.java (limited to 'java/JACE/netsvcs/Token/MutexHandler.java') diff --git a/java/JACE/netsvcs/Token/MutexHandler.java b/java/JACE/netsvcs/Token/MutexHandler.java deleted file mode 100644 index 82f79fe5a76..00000000000 --- a/java/JACE/netsvcs/Token/MutexHandler.java +++ /dev/null @@ -1,51 +0,0 @@ -package JACE.netsvcs.Token; - -import JACE.Concurrency.*; - -/** - * LockHandler implementation for a mutex lock. - *

- * Currently, this uses JACE.Concurrency.Token as the actual lock since - * it supports nested acquires. - * - *@see LockHandler - */ -public class MutexHandler extends LockHandlerAdapter -{ - // Uses token since it supports nested acquires. - static class ExtendedMutex extends Token - { - // This is so that we don't make any assumptions about previous - // implementations of LockAdapter, and enable owner checking with - // the client ID from TokenRequest. The thread name is set in - // handleRequest. - protected Object accessorID () - { - return Thread.currentThread().getName(); - } - } - - /** - * Default constructor. - */ - public MutexHandler () - { - super (new ExtendedMutex ()); - } - - public TokenReply handleRequest (TokenRequestHandler caller, - TokenRequest request) - { - Thread.currentThread().setName (request.clientID ()); - - return super.handleRequest (caller, request); - } - - public void abandonLock (String clientID) - { - Thread.currentThread().setName (clientID); - - super.abandonLock (clientID); - } -} - -- cgit v1.2.1