JamesEarlDouglas/funtinuations — Issue #1: Is there a multi-threading issue?
Author: amarsinghaustin
Created: 2011-11-11 19:06:46+00:00
State: open

I am looking at - Asynchronous Network I/O with Scala Continuations. In the AsyncServer version, you are adding load to the queue variable. This is done in one thread and read in another thread. But this variable is not defined as volatile and access is not synchronized.

Is this not a bug? I am new to Scala. From what I read in java, this would not be a multi-thread safe.

I could not find a place to comment, so I decided to open an issue :-) Hope you will comment.