OpenCores
URL https://opencores.org/ocsvn/open8_urisc/open8_urisc/trunk

Subversion Repositories open8_urisc

[/] [open8_urisc/] [trunk/] [gnu/] [binutils/] [gold/] [workqueue-internal.h] - Diff between revs 27 and 159

Go to most recent revision | Show entire file | Details | Blame | View Log

Rev 27 Rev 159
Line 54... Line 54...
  virtual void
  virtual void
  set_thread_count(int) = 0;
  set_thread_count(int) = 0;
 
 
  // Return whether to cancel the current thread.
  // Return whether to cancel the current thread.
  virtual bool
  virtual bool
  should_cancel_thread() = 0;
  should_cancel_thread(int thread_number) = 0;
 
 
 protected:
 protected:
  // Get the Workqueue.
  // Get the Workqueue.
  Workqueue*
  Workqueue*
  get_workqueue()
  get_workqueue()
Line 82... Line 82...
  void
  void
  set_thread_count(int);
  set_thread_count(int);
 
 
  // Return whether to cancel a thread.
  // Return whether to cancel a thread.
  bool
  bool
  should_cancel_thread();
  should_cancel_thread(int thread_number);
 
 
  // Process all tasks.  This keeps running until told to cancel.
  // Process all tasks.  This keeps running until told to cancel.
  void
  void
  process(int thread_number)
  process(int thread_number)
  { this->get_workqueue()->process(thread_number); }
  { this->get_workqueue()->process(thread_number); }

powered by: WebSVN 2.1.0

© copyright 1999-2024 OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.