brusacco 20 Posted October 4, 2013 Report Share Posted October 4, 2013 Hello,Just asking if the "next lilst item" command is safe to use inside a thread, for a global list.For example we have a global orders list, and a thread is logged to an account, same or diferent. In that thread call to the "next list item" in the global list, will be this a safe call?Ubot manages itself the access to variables from threads? I dont have to worry about concurrence and other normal threading stuff? Thanks. Quote Link to post Share on other sites
Code Docta (Nick C.) 638 Posted October 4, 2013 Report Share Posted October 4, 2013 I have not had any issues with it. But others say it is best to use set(#list pos, 0, "Global")loop($list total(%my list)) { set list position(%my list, #list pos) comment("code here") increment(#list pos)} That way might give more security but next list item will get the job done too. Quote Link to post Share on other sites
brusacco 20 Posted October 4, 2013 Author Report Share Posted October 4, 2013 Thanks for the reply, I'll do some test this weekend ...Have started a thread pool feature request too ... I’ll be very useful.... Quote Link to post Share on other sites
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.