Results 1 to 2 of 2
  1. #1
    Join Date
    Sep 2009

    Calling IItemEventListener.Update from multiple threads


    Is IItemEventListener.Update method thread safe? Documentation says: "Note that the method is nonblocking; moreover, it only takes locks to first order mutexes; so, it can safely be called while holding a custom lock." what is first order a mutex?


  2. #2
    Join Date
    Jul 2006
    Yes, IItemEventListener.Update is thread safe and, when invoked on multiple threads, it enqueues the requests.

    We added that the locks needed to enqueue the requests are "first order",
    meaning that while these locks are held (in whatever way) no other locks can be requested,
    hence no deadlock can occur, regardless of what other threads are doing.
    You might consider the above remark a redundant one, as taken for granted in typical API methods.



Similar Threads

  1. Total JVM Threads
    By faa666 in forum General
    Replies: 1
    Last Post: February 20th, 2012, 09:53 AM
  2. update items with the same value
    By TehHector in forum Client SDKs
    Replies: 2
    Last Post: April 26th, 2011, 09:46 AM
  3. Update Table
    By EWANG in forum Client SDKs
    Replies: 1
    Last Post: August 19th, 2009, 10:17 AM
  4. subscribe to items not using threads
    By nagakumaran in forum Adapter SDKs
    Replies: 6
    Last Post: October 16th, 2007, 02:11 PM
  5. Dojo 0.9 Update
    By rakeshxp in forum Client SDKs
    Replies: 1
    Last Post: August 27th, 2007, 11:42 AM


Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
All times are GMT +1. The time now is 09:28 AM.