touched up code more for async handling debugging

This commit is contained in:
hyunghwan.chung
2018-04-12 16:05:46 +00:00
parent 3c0d1d3481
commit 7b114e3b27
3 changed files with 31 additions and 15 deletions

View File

@ -290,6 +290,8 @@ class AsyncHandle(Object)
{
##if (self.insem notNil) { System unsignal: self.insem }.
System unsignal: self.insem.
System removeAsyncSemaphore: self.insem.
self.insem := nil.
}.
}.
}
@ -323,6 +325,8 @@ class AsyncHandle(Object)
{
## self.outsem must not be nil here.
System unsignal: self.outsem.
System removeAsyncSemaphore: self.outsem.
self.outsem := nil.
}.
}.
}
@ -608,7 +612,7 @@ error -> exception
].
[
| s s2 |
| s s2 st |
[
s := Socket domain: Socket.Domain.INET type: Socket.Type.STREAM.
##s connect: (SocketAddress fromString: '127.0.0.1:9999') do: conact.
@ -620,10 +624,13 @@ error -> exception
## ###s2 listen: 10; watchInput.
## s2 listen: 10 do: accact.
###[ while (1) { '1111' dump. System sleepForSecs: 1 } ] fork.
while (true)
{
System handleAsyncEvent.
if (System handleAsyncEvent isError) { break }.
}.
]
ensure:
[