mirror of
https://github.com/janet-lang/janet
synced 2024-11-24 17:27:18 +00:00
Reformat files.
This commit is contained in:
parent
813e3fdcfd
commit
88c1cf3ee7
@ -753,18 +753,18 @@ void janet_loop1_impl(int has_timeout, JanetTimeout timeout) {
|
||||
if (now > to.when) {
|
||||
waittime = 0;
|
||||
} else {
|
||||
waittime = (uint64_t) (to.when - now);
|
||||
waittime = (uint64_t)(to.when - now);
|
||||
}
|
||||
} else {
|
||||
waittime = INFINITE;
|
||||
}
|
||||
BOOL result = GetQueuedCompletionStatus(janet_vm_iocp, &num_bytes_transfered, &completionKey, &overlapped, (DWORD) waittime);
|
||||
BOOL result = GetQueuedCompletionStatus(janet_vm_iocp, &num_bytes_transfered, &completionKey, &overlapped, (DWORD) waittime);
|
||||
|
||||
if (!result) {
|
||||
if (!result) {
|
||||
if (!has_timeout) {
|
||||
JANET_EXIT("failed to get iocp GetQueuedCompletionStatus");
|
||||
}
|
||||
} else {
|
||||
} else {
|
||||
/* Normal event */
|
||||
JanetListenerState *state = (JanetListenerState *) completionKey;
|
||||
state->event = overlapped;
|
||||
@ -986,7 +986,7 @@ void janet_loop1_impl(int has_timeout, JanetTimestamp timeout) {
|
||||
do {
|
||||
if (has_timeout) {
|
||||
JanetTimestamp now = ts_now();
|
||||
ready = poll(janet_vm_fds, janet_vm_fdcount, now > timeout ? 0 : (int) (timeout - now));
|
||||
ready = poll(janet_vm_fds, janet_vm_fdcount, now > timeout ? 0 : (int)(timeout - now));
|
||||
} else {
|
||||
ready = poll(janet_vm_fds, janet_vm_fdcount, -1);
|
||||
}
|
||||
@ -1139,7 +1139,7 @@ static const JanetReg ev_cfuns[] = {
|
||||
{
|
||||
"ev/rselect", cfun_channel_rchoice,
|
||||
JDOC("(ev/rselect & clauses)\n\n"
|
||||
"Similar to ev/choice, but will try clauses in a random order for fairness.")
|
||||
"Similar to ev/choice, but will try clauses in a random order for fairness.")
|
||||
},
|
||||
{NULL, NULL, NULL}
|
||||
};
|
||||
|
@ -259,7 +259,7 @@ JANET_NO_RETURN static void janet_sched_read(JanetStream *stream, JanetBuffer *b
|
||||
WSARecv((SOCKET) stream->handle,
|
||||
|
||||
#endif
|
||||
janet_await();
|
||||
janet_await();
|
||||
}
|
||||
|
||||
JANET_NO_RETURN static void janet_sched_chunk(JanetStream *stream, JanetBuffer *buf, int32_t nbytes) {
|
||||
|
Loading…
Reference in New Issue
Block a user