Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 19 Feb 2004 14:03:52 -0800 (PST)
From:      John Baldwin <jhb@FreeBSD.org>
To:        src-committers@FreeBSD.org, cvs-src@FreeBSD.org, cvs-all@FreeBSD.org
Subject:   cvs commit: src/sys/kern subr_taskqueue.c
Message-ID:  <200402192203.i1JM3qW8090282@repoman.freebsd.org>

next in thread | raw e-mail | index | archive | help
jhb         2004/02/19 14:03:52 PST

  FreeBSD src repository

  Modified files:
    sys/kern             subr_taskqueue.c 
  Log:
  Tidy up the thread taskqueue implementation and close a lost wakeup race.
  Instead of creating a mutex that we msleep on but don't actually lock when
  doing the corresponding wakeup(), in the kthread, lock the mutex associated
  with our taskqueue and msleep while the queue is empty.  Assert that the
  queue is locked when the callback function is called to wake the kthread.
  
  Revision  Changes    Path
  1.22      +9 -14     src/sys/kern/subr_taskqueue.c



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