Can somebody descamble for me ">>" marked lines in followed code ?


waitForDataUntil: deadline
        "Wait up until the given deadline for data to arrive. Return true if
data arrives by the deadline, false if not."

        | dataArrived |
        [self isConnected & 
        (dataArrived _ self primSocketReceiveDataAvailable: socketHandle) not
        "Connection end and final data can happen fast, so test in this order"
        and: [Time millisecondClockValue < deadline]] whileTrue: 
        [
>>      semaphore waitTimeoutMSecs: (deadline - Time millisecondClockValue).
        ( Delay forMilliseconds: 100 ) wait.
>>      " I put some delay inside, to reduce cpu load, is it correct here ? "

        ].

        ^ dataArrived



Jan Barger

 http://www.barnett.sk
 http://www.napri.sk



"Those who know
do not say;
Those who say
do not know."

        Lao-tzu's 

http://www.ccnet.com/~elsajoy/spiritus3.html

Reply via email to