Exchanged direct flag access with foreseen function call for thread
notification.