Results 1 to 2 of 2
  1. #1
    Member
    Join Date
    Sep 2009
    Location
    afsdfa
    Posts
    4

    Calling IItemEventListener.Update from multiple threads

    Hi,

    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?

    Thanks!

  2. #2
    Administrator
    Join Date
    Jul 2006
    Location
    Milan
    Posts
    975
    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, 10:53 AM
  2. update items with the same value
    By TehHector in forum Client APIs
    Replies: 2
    Last Post: April 26th, 2011, 10:46 AM
  3. Update Table
    By EWANG in forum Client APIs
    Replies: 1
    Last Post: August 19th, 2009, 11:17 AM
  4. subscribe to items not using threads
    By nagakumaran in forum Adapter APIs
    Replies: 6
    Last Post: October 16th, 2007, 03:11 PM
  5. Dojo 0.9 Update
    By rakeshxp in forum Client APIs
    Replies: 1
    Last Post: August 27th, 2007, 12:42 PM

Bookmarks

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 12:04 AM.