Index: base/threading/sequenced_worker_pool.h |
=================================================================== |
--- base/threading/sequenced_worker_pool.h (revision 128981) |
+++ base/threading/sequenced_worker_pool.h (working copy) |
@@ -219,6 +219,10 @@ |
TimeDelta delay) OVERRIDE; |
virtual bool RunsTasksOnCurrentThread() const OVERRIDE; |
+ // Returns true if the current thread is processing a task with the given |
+ // sequence_token. |
+ bool IsRunningSequenceOnCurrentThread(SequenceToken sequence_token) const; |
+ |
// Blocks until all pending tasks are complete. This should only be called in |
// unit tests when you want to validate something that should have happened. |
// |