This is the abstract ACPI event handler class. More...
#include <libthinkpad.h>
Public Member Functions | |
virtual void | handleEvent (ACPIEvent event)=0 |
Static Public Member Functions | |
static void * | _handleEvent (void *_this) |
This is the abstract ACPI event handler class.
If you want to use this class, override the handleEvent(ACPIEvent) method and do your thing there. The method is called from another thread so watch out for threading issues that might occur.
If you need to use shared resources inside the handler, use the pthread mutex API.
|
static |
PRIVATE METHOD: DO NOT USE
|
pure virtual |
This method is called for various ACPI events, such as power button presses, lid events and dock events.
event | the event that occured |