Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 25 Mar 2008 22:38:45 +0000 (UTC)
From:      Scott Long <scottl@FreeBSD.org>
To:        src-committers@FreeBSD.org, cvs-src@FreeBSD.org, cvs-all@FreeBSD.org
Subject:   cvs commit: src/sys/sys taskqueue.h src/sys/kern subr_taskqueue.c
Message-ID:  <200803252238.m2PMcjOE017197@repoman.freebsd.org>

next in thread | raw e-mail | index | archive | help
scottl      2008-03-25 22:38:45 UTC

  FreeBSD src repository

  Modified files:
    sys/sys              taskqueue.h 
    sys/kern             subr_taskqueue.c 
  Log:
  Implement taskqueue_block() and taskqueue_unblock().  These functions allow
  the owner of a queue to block and unblock execution of the tasks in the
  queue while allowing tasks to continue to be added queue.  Combining this
  with taskqueue_drain() allows a queue to be safely disabled.  The unblock
  function may run (or schedule to run) the queue when it is called, just as
  calling taskqueue_enqueue() would.
  
  Reviewed by: jhb, sam
  
  Revision  Changes    Path
  1.41      +28 -1     src/sys/kern/subr_taskqueue.c
  1.18      +2 -0      src/sys/sys/taskqueue.h



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200803252238.m2PMcjOE017197>