Login | Register For Free | Help
Search for: (Advanced)

Mailing List Archive: Xen: API

task_server.ml

 

 

Xen api RSS feed   Index | Next | Previous | View Threaded


thomas at gazagnaire

Aug 2, 2012, 3:44 AM

Post #1 of 1 (154 views)
Permalink
task_server.ml

Hi,

I am wondering why the subtask field is not protected in the function with_subtask in xen-api/ocaml/xenops/task_server.ml. It is not clear to me that the invariant "only one thread per task" is enforced in xenopsd (where there are *a lot* of asynchronous processes) and in the storage layer (ok, there is only one call to with_subtask here, and it seems relatively safe as the main task is short-lived and not passed around, but how do you ensure it will still be enforced in future changes). Is there any good reason to that ?

Thomas
_______________________________________________
Xen-api mailing list
Xen-api [at] lists
http://lists.xen.org/cgi-bin/mailman/listinfo/xen-api

Xen api RSS feed   Index | Next | Previous | View Threaded
 
 


Interested in having your list archived? Contact Gossamer Threads
 
  Web Applications & Managed Hosting Powered by Gossamer Threads Inc.