cvs commit: src/sys/sys thread.h src/sys/kern lwkt_thread.c

Matthew Dillon dillon at
Fri May 28 01:38:37 PDT 2004

dillon      2004/05/28 01:37:34 PDT

DragonFly src repository

  Modified files:
    sys/sys              thread.h 
    sys/kern             lwkt_thread.c 
  Add lwkt_setcpu_self(), a function which migrates the current thread to
  the specified cpu.  This will soon be used by sysctl_kern_proc() to
  collect thread information across all available cpus (because it is only
  legal to manipulate a thread on the cpu it belongs to).
  Yes, you heard that right and, yes, the overhead is nasty... one whole
  microsecond per cpu at least, possibly even two.  But who cares for
  something like 'ps'?
  In-conversation-with: Hiten Pandya <hmp at xxxxxxxxxxx>
  Revision  Changes    Path
  1.52      +2 -0      src/sys/sys/thread.h
  1.61      +64 -3     src/sys/kern/lwkt_thread.c

More information about the Commits mailing list