GDBInternalPipeStream.st
changeset 302 fdfe1a981363
parent 272 cdd1c9ad00de
equal deleted inserted replaced
301:2d0631d5ed1a 302:fdfe1a981363
   191 initializeWithBufferSize: bufferSize
   191 initializeWithBufferSize: bufferSize
   192     buffer := String new: bufferSize.
   192     buffer := String new: bufferSize.
   193     first := 1.
   193     first := 1.
   194     last := 0.
   194     last := 0.
   195 
   195 
   196     accessLock := Semaphore forMutualExclusion." Plug new respondTo: #critical: with: [ :block | block value ]; yourself."
   196     accessLock := GDBPortlib current newMutex." Plug new respondTo: #critical: with: [ :block | block value ]; yourself."
   197     dataAvailable := Semaphore new.
   197     dataAvailable := GDBPortlib current newSemaphore.
   198     spaceAvailable := Semaphore new.
   198     spaceAvailable := GDBPortlib current newSemaphore.
   199 
   199 
   200     closed := false
   200     closed := false
   201 
   201 
   202     "Created: / 07-06-2014 / 00:49:41 / Jan Vrany <jan.vrany@fit.cvut.cz>"
   202     "Created: / 07-06-2014 / 00:49:41 / Jan Vrany <jan.vrany@fit.cvut.cz>"
   203     "Modified: / 11-06-2014 / 23:12:54 / Jan Vrany <jan.vrany@fit.cvut.cz>"
   203     "Modified: / 11-06-2014 / 23:12:54 / Jan Vrany <jan.vrany@fit.cvut.cz>"
       
   204     "Modified: / 18-08-2023 / 14:18:17 / Jan Vrany <jan.vrany@labware.com>"
   204 ! !
   205 ! !
   205 
   206 
   206 !GDBInternalPipeStream methodsFor:'non homogenous reading'!
   207 !GDBInternalPipeStream methodsFor:'non homogenous reading'!
   207 
   208 
   208 nextAvailableBytes:max into:out startingAt:offset
   209 nextAvailableBytes:max into:out startingAt:offset