@@ -286,10 +286,11 @@ VAL copyTo(VM* newVM, VAL x);
287// Add a message to another VM's message queue
287// Add a message to another VM's message queue
288void idris_sendMessage(VM* sender, VM* dest, VAL msg);
288void idris_sendMessage(VM* sender, VM* dest, VAL msg);
289+// Check whether there are any messages in the queue and return PID of
290+// sender if so (null if not)
291+VM* idris_checkMessages(VM* vm);
289// Check whether there are any messages in the queue
292// Check whether there are any messages in the queue
290−int idris_checkMessages(VM* vm);
291−// Check whether there are any messages in the queue
292−int idris_checkMessagesFrom(VM* vm, VM* sender);
293+VM* idris_checkMessagesFrom(VM* vm, VM* sender);
293// block until there is a message in the queue
294// block until there is a message in the queue
294Msg* idris_recvMessage(VM* vm);
295Msg* idris_recvMessage(VM* vm);
295// block until there is a message in the queue
296// block until there is a message in the queue