Marked all communication variables which are set by notifier thread with "volatile".