[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
-
Eero Saynatkari April 8th, 2008 @ 01:52 PM
- → State changed from new to open
- → Assigned user changed from to Eero Saynatkari
-

rosejn April 8th, 2008 @ 04:01 PM
Here are two separate patches: one for the actor and mailbox feature additions and one for the specs. They have the name and email set correctly now too.
-

-
Eero Saynatkari April 8th, 2008 @ 04:37 PM
- → State changed from open to resolved
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 »
