Christof Donat wrote:
> 
> You can not be shure that a JavaScript Engine is not threaded. This code
> is 
> not threadsave. Imagine the following situation:
> 
> Thread 1                            Thread 2
> $.filter()
> parse2RE is set to e.g. 1
> Thread is stopped by OS Sceduler -> $.filter()
>                                     jQuery.parse2RE != 0 !!
> 

Yes, but if it's not 0 it's ok I guess. There is a preprocessing step that
sets parse2RE, and if it's not 0 isn't it safe to suppose it holds the
correct RegExp object set during preprocessing?

-- 
View this message in context: 
http://www.nabble.com/filter-refactored-with-the-engine-of-Chili-tf2718426.html#a7584966
Sent from the JQuery mailing list archive at Nabble.com.


_______________________________________________
jQuery mailing list
[email protected]
http://jquery.com/discuss/

Reply via email to