[haiku-commits] Re: r34170 - haiku/trunk/src/add-ons/kernel/bus_managers/acpi

  • From: Fredrik Holmqvist <fredrik.holmqvist@xxxxxxxxx>
  • To: haiku-commits@xxxxxxxxxxxxx
  • Date: Sat, 21 Nov 2009 17:20:38 +0100

2009/11/21 Stefano Ceccherini <stefano.ceccherini@xxxxxxxxx>:
> Well but that's what DPC is meant to be: a module to do exactly that,
> meant to be reused.

I think it is more trouble than it's worth. It also has a lot of
serious restrictions, mostly because it serializes all tasks:
* I can't prioritize tasks (acpi lock release would be better to have prio)
* If one task blocks, then it's completly stuck...

It seems simpler and less fragile to just spawn a thread.

/Fredrik Holmqvist, TQH

Other related posts: