I''ve just committed fastthread 0.5.3, which finally gives us a working SizedQueue (which hadn''t really ever worked in previous versions). Mostly it was just a matter of refactoring Queue and SizedQueue into a single class behind the scenes, so I could move the signalling of the SizedQueue-specific condition variable inside the queue''s critical section. Failing to do so had led to a race and all sorts of badness. Unless someone finds more bugs, this version of fastthread will eventually become 1.0. -mental -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 189 bytes Desc: This is a digitally signed message part Url : http://rubyforge.org/pipermail/mongrel-users/attachments/20061216/799d9ba7/attachment.bin
On Saturday 16 December 2006 19:48, MenTaLguY wrote:> Unless someone finds more bugs, this version of fastthread will > eventually become 1.0.I don''t know if this is a fastthread, mongrel or gems problem - it might not even be a problem! Since upgrading to fastthread 0.5.3.1 and mongrel 1.0RC1, I get a message - "fastthread not loaded: fastthread must be required before thread" - when starting my DRb upload server (detailed here: http://mongrel.rubyforge.org/docs/upload_progress.html). "require ''fastthread''" doesn''t seem to alter anything. I haven''t had time to fully check it out, but everything still appears to function alright, at least on my development box. Can anyone explain what''s happening? How can I fix it, if I need to? Cheers, Mark
On Dec 22, 2006, at 1:48 AM, Mark Somerville wrote:> On Saturday 16 December 2006 19:48, MenTaLguY wrote: >> Unless someone finds more bugs, this version of fastthread will >> eventually become 1.0. > > I don''t know if this is a fastthread, mongrel or gems problem - it > might not > even be a problem! > > Since upgrading to fastthread 0.5.3.1 and mongrel 1.0RC1, I get a > message - "fastthread not loaded: fastthread must be required before > thread" - when starting my DRb upload server (detailed here: > http://mongrel.rubyforge.org/docs/upload_progress.html). "require > ''fastthread''" > doesn''t seem to alter anything. I haven''t had time to fully check > it out, but > everything still appears to function alright, at least on my > development box. > > Can anyone explain what''s happening? How can I fix it, if I need to? > > Cheers, > > MarkMark- When you require ''drb'' drb in turn requires thread. If you are using fastthread you must require it before thread gets required thats just the way it works. So in your drb server code file you need to do this: require ''rubygems'' require ''fastthread'' then require drb and anything else you need. Cheers- -- Ezra Zygmuntowicz -- Lead Rails Evangelist -- ez at engineyard.com -- Engine Yard, Serious Rails Hosting -- (866) 518-YARD (9273)
On Friday 22 December 2006 18:32, Ezra Zygmuntowicz wrote:> On Dec 22, 2006, at 1:48 AM, Mark Somerville wrote: > > On Saturday 16 December 2006 19:48, MenTaLguY wrote: > >> Unless someone finds more bugs, this version of fastthread will > >> eventually become 1.0. > > > > I don''t know if this is a fastthread, mongrel or gems problem - it > > might not > > even be a problem! > > > > Since upgrading to fastthread 0.5.3.1 and mongrel 1.0RC1, I get a > > message - "fastthread not loaded: fastthread must be required before > > thread" - when starting my DRb upload server (detailed here: > > http://mongrel.rubyforge.org/docs/upload_progress.html). "require > > ''fastthread''" > > doesn''t seem to alter anything. I haven''t had time to fully check > > it out, but > > everything still appears to function alright, at least on my > > development box. > > > > Can anyone explain what''s happening? How can I fix it, if I need to? > > > > Cheers, > > > > Mark > > Mark- > > When you require ''drb'' drb in turn requires thread. If you are using > fastthread you must require it before thread gets required thats just > the way it works. So in your drb server code file you need to do this: > > require ''rubygems'' > require ''fastthread'' > then require drb and anything else you need.Works a treat. Thank you Ezra. Mark> > Cheers- > -- Ezra Zygmuntowicz > -- Lead Rails Evangelist > -- ez at engineyard.com > -- Engine Yard, Serious Rails Hosting > -- (866) 518-YARD (9273) > > > _______________________________________________ > Mongrel-users mailing list > Mongrel-users at rubyforge.org > http://rubyforge.org/mailman/listinfo/mongrel-users