#482 √ resolved
rosejn

[PATCH] mailbox timeouts and actor registration

Reported by rosejn | April 8th, 2008 @ 05:49 AM | in 1.0 preview

This patch adds timeout functionality to mailboxes, and it adds Mailbox#clear that removes all pending messages. Additionally it adds keyed registration for Actors, which can be used to offer services locally and eventually over multiple vms.

NOTE: It appears that the Scheduler.send_in_microseconds method is not actually sending in the correct number of microseconds, which means the mailbox timeouts are not accurate. I might be using them wrong, in which case this is a bug on my part, but I will post another ticket with more information related to this.

--------------------------------------------------------------------------------------------

Specs are included for everything:

rosejn@warp:~/projects/rubinius$ ./bin/mspec spec/library/mailbox_spec.rb

....

Finished in 0.023841 seconds

1 file, 4 examples, 6 expectations, 0 failures, 0 errors

rosejn@warp:~/projects/rubinius$ ./bin/mspec spec/library/actor_spec.rb

..

Finished in 0.061015 seconds

1 file, 2 examples, 4 expectations, 0 failures, 0 errors

Comments and changes to this ticket

Please Login or create a free account to add a new comment.

You can update this ticket by sending an email to from your email client. (help)

Create your profile

Help contribute to this project by taking a few moments to create your personal profile. Create your profile »

People watching this ticket