Hi,

In message "Re: okay, threading & sandbox r70 -- the latest patch"
    on Tue, 5 Sep 2006 15:41:30 +0900, why the lucky stiff <ruby-core / whytheluckystiff.net> writes:

|We have previously talked about getting the sandbox to obey thread switching on
|this list and I have worked up a patch.
|
|Here is how the patch works:
| * three members are added to rb_thread_t:
|   * sandbox_save, a callback VALUE(*)(rb_thread_t *), which is called at the
|     end of rb_thread_save_context.
|   * sandbox_restore, a callback VALUE(*)(rb_thread_t *), which is called at
|     the end of rb_restore_context.
|   * sandbox, a VALUE for storing the thread's sandbox or, if none, Qnil.
| * curr_thread and main_thread are exposed, to allow assignment to the above.
|
|If any of you would like to try it with Ruby 1.8.5 instead, that patch is
|available in trunk at patch/ruby-1.8.5-sandbox_needs.patch.

Commit it both HEAD and 1.8, please.

							matz.