Added the TriggerEvent class for a slightly better way to call other threads

Signed-off-by: Toon Schoenmakers <nighteyes1993@gmail.com>