title: How to get the tasks list in GCD queue?
body: <p>I get the main queue in GCD as below and I add different tasks from different classes in my apps.</p>
  
  <pre><code>dispatch_queue_t queue = dispatch_get_global_queue (
      DISPATCH_QUEUE_PRIORITY_DEFAULT, 0);
  </code></pre>
  
  <p>Now I want to know how many of my tasks which are still in the GCD main queue.</p>
  
  <p>Is there any method to get the tasks list in GCD queue? </p>
  
  <p>Thanks</p>