home bbs files messages ]

Forums before death by AOL, social media and spammers... "We can't have nice things"

   comp.protocols.tcp-ip      TCP and IP network protocols.      14,669 messages   

[   << oldest   |   < older   |   list   |   newer >   |   newest >>   ]

   Message 12,740 of 14,669   
   Skybuck Flying to All   
   Re: UDP Speed Test Version 2.93 Now Avai   
   22 Feb 09 04:30:13   
   
   XPost: alt.comp.lang.borland-delphi, alt.winsock.programming   
   From: BloodyShame@hotmail.com   
      
   The try lock method is a kinda dangerous idea since it does not provide any   
   garantuee that the lock will ever be acquired.   
      
   However suppose that a garantee must be given that it is acquired at least   
   once per second... then maybe a timer could for example set some boolean   
   like so:   
      
   LockRequired := True;   
      
   Then the code could be:   
      
   if LockRequired then   
   begin   
       mCriticalSection.Enter;   
   end else   
   begin   
       if TryLock then...   
   end;   
      
   Something like that...   
      
   Just a concept ! ;)   
      
   Bye,   
     Skybuck.   
      
   --- SoupGate-Win32 v1.05   
    * Origin: you cannot sedate... all the things you hate (1:229/2)   

[   << oldest   |   < older   |   list   |   newer >   |   newest >>   ]


(c) 1994,  bbs@darkrealms.ca