--
>>>>>>>>>> Read the docs: http://akka.io/docs/
>>>>>>>>>> Check the FAQ: http://doc.akka.io/docs/akka/current/additional/faq.html
>>>>>>>>>> Search the archives: https://groups.google.com/group/akka-user
---
You received this message because you are subscribed to the Google Groups "Akka User List" group.
To unsubscribe from this group and stop receiving emails from it, send an email to akka-user+unsubscribe@googlegroups.com.
To post to this group, send email to akka...@googlegroups.com.
Visit this group at https://groups.google.com/group/akka-user.
For more options, visit https://groups.google.com/d/optout.
On Mon, Nov 28, 2016 at 8:44 PM, Kevin Meredith <kevin.m....@gmail.com> wrote:
Looking at the Mailboxes docs, for the UnboundedMailbox, is it true that an Actor with this mailbox will only read a single message from its mailbox at a time?In other words, if mutating a field within an Actor (and within that Actor alone), is it necessary to use a thread-safe value, i.e. java.util.concurrent.atomic.AtomicLong versus Scala's native Long?Further, in the following example using Scala 2.11.8:import akka.actor._class SimpleActor extends Actor {var x = 0L;def receive = ??? // does not matter for this question}using the UnboundedMailbox, would `x` ever run into a race condition as-is?
--
>>>>>>>>>> Read the docs: http://akka.io/docs/
>>>>>>>>>> Check the FAQ: http://doc.akka.io/docs/akka/current/additional/faq.html
>>>>>>>>>> Search the archives: https://groups.google.com/group/akka-user
---
You received this message because you are subscribed to the Google Groups "Akka User List" group.
To unsubscribe from this group and stop receiving emails from it, send an email to akka-user+...@googlegroups.com.
To post to this group, send email to akka...@googlegroups.com.
Visit this group at https://groups.google.com/group/akka-user.
For more options, visit https://groups.google.com/d/optout.
--Cheers,√
To unsubscribe from this group and stop receiving emails from it, send an email to akka-user+unsubscribe@googlegroups.com.
To post to this group, send email to akka...@googlegroups.com.
Visit this group at https://groups.google.com/group/akka-user.
For more options, visit https://groups.google.com/d/optout.