zturner added a comment.

Long term I think one potentially interesting possibility for solving a lot of 
these threading and lazy evaluation issues is to make a task queue that runs 
all related operations on a single thread and returns a future you can wait on. 
 This way, the core data structures themselves do not need synchronization 
because they are only ever accessed from one thread.  I actually have a patch 
in progress <https://reviews.llvm.org/D48240> to make this kind of 
infrastructure, which I actually needed for a different reason, but it would 
work equally well here.

Mostly just putting this out there as an idea for down the road, not that you 
should do it right now.


https://reviews.llvm.org/D48393



_______________________________________________
lldb-commits mailing list
lldb-commits@lists.llvm.org
http://lists.llvm.org/cgi-bin/mailman/listinfo/lldb-commits

Reply via email to