-
January 21st, 2010, 09:56 AM
#1
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!
-
January 22nd, 2010, 02:16 PM
#2
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
-
By faa666 in forum General
Replies: 1
Last Post: February 20th, 2012, 09:53 AM
-
By TehHector in forum Client SDKs
Replies: 2
Last Post: April 26th, 2011, 09:46 AM
-
By EWANG in forum Client SDKs
Replies: 1
Last Post: August 19th, 2009, 10:17 AM
-
By nagakumaran in forum Adapter SDKs
Replies: 6
Last Post: October 16th, 2007, 02:11 PM
-
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
-
Forum Rules
All times are GMT +1. The time now is 02:57 AM.
Bookmarks