implemented mutex methods - no testing yet
cannot make work usuing thread queue - reverting to polling
before implementing producer-consumer - wrong (but working) mutex class