Would the STAF ResPool service work instead?  It allows you to cancel a
waiting request...

- Paul E.


                                                                                
                                                                
  From:       "Hernandez, Alejandro" <ajhernan...@ti.com>                       
                                                                
                                                                                
                                                                
  To:         "staf-users@lists.sourceforge.net" 
<staf-users@lists.sourceforge.net>                                              
               
                                                                                
                                                                
  Date:       02/04/2011 09:06 AM                                               
                                                                
                                                                                
                                                                
  Subject:    [staf-users] Cancelling a pending request to sem mutex            
                                                                
                                                                                
                                                                





Hi,

I am trying to write a STAF based Java program that allows the users to
gain access to a shared resource, I am thinking of controlling the access
to the shared resource using a mutex implemented with Staf’s SEM service.
One feature I would like to include in the program is the ability to cancel
a request for the shared resource. Right now if another user already has
access to the resource the program blocks on the REQUEST MUTEX <Name> call
waiting for the mutex to be released, however If the user decides not to
wait for the resource and clicks the cancel button I am not able to cancel
the pending request to the mutex, Is there any way of doing this?

Thanks and regards,
Alejandro
------------------------------------------------------------------------------

The modern datacenter depends on network connectivity to access resources
and provide services. The best practices for maximizing a physical server's
connectivity to a physical network are well understood - see how these
rules translate into the virtual world?
http://p.sf.net/sfu/oracle-sfdevnlfb
_______________________________________________
staf-users mailing list
staf-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/staf-users

<<inline: graycol.gif>>

<<inline: ecblank.gif>>

------------------------------------------------------------------------------
The modern datacenter depends on network connectivity to access resources
and provide services. The best practices for maximizing a physical server's
connectivity to a physical network are well understood - see how these
rules translate into the virtual world? 
http://p.sf.net/sfu/oracle-sfdevnlfb
_______________________________________________
staf-users mailing list
staf-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/staf-users

Reply via email to