mirror of
https://github.com/ParkerTenBroeck/coroutines.git
synced 2026-06-07 05:08:51 -04:00
fixed a number of bugs related to stack frame interpretation
This commit is contained in:
parent
0ad439c4d6
commit
d4771ef4e0
9 changed files with 52 additions and 52 deletions
|
|
@ -38,6 +38,10 @@ public class Jokio implements Runnable{
|
|||
};
|
||||
}
|
||||
|
||||
public static Jokio runtime(Waker waker){
|
||||
return ((Task<?>)waker).runtime();
|
||||
}
|
||||
|
||||
private final HashSet<Task<?>> current = new HashSet<>();
|
||||
private final Queue<Task<?>> woke = new ArrayDeque<>();
|
||||
|
||||
|
|
|
|||
|
|
@ -42,7 +42,6 @@ public class Socket implements AutoCloseable{
|
|||
var c = (SocketChannel)key.channel();
|
||||
var w = (Waker)key.attachment();
|
||||
|
||||
System.out.println(key);
|
||||
if (!key.isValid()) {
|
||||
}
|
||||
if(key.isAcceptable()){
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue