This repository has been archived by the owner on May 29, 2022. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
async_loop, async_w, async_wloop, future, promise, clearing pointers
- Loading branch information
slowcheet4h
committed
Mar 9, 2021
1 parent
9cc23f2
commit efeb789
Showing
8 changed files
with
271 additions
and
150 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,12 +1,13 @@ | ||
package pisi.unitedmeows.meowlib.async; | ||
|
||
public interface ITaskPool { | ||
|
||
void queue(Task<?> task); | ||
/* queue first */ | ||
void queue_f(Task<?> task); | ||
Task<?> poll(); | ||
int workerCount(); | ||
void close(); | ||
void setup(); | ||
} | ||
package pisi.unitedmeows.meowlib.async; | ||
|
||
public interface ITaskPool { | ||
|
||
void queue(Task<?> task); | ||
/* queue first */ | ||
void queue_f(Task<?> task); | ||
void queue_w(Task<?> task, long after); | ||
Task<?> poll(); | ||
int workerCount(); | ||
void close(); | ||
void setup(); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
package pisi.unitedmeows.meowlib.async; | ||
|
||
public class Promise { | ||
private boolean valid = true; | ||
|
||
public void stop() { | ||
valid = false; | ||
} | ||
|
||
public void start() { | ||
valid = true; | ||
} | ||
|
||
public boolean isValid() { | ||
return valid; | ||
} | ||
} |
Oops, something went wrong.