synchronized class EventLog{ void opCall(string s){ std.file.append("logfile.txt", s); } } shared EventLog eventLog; Pleas, is it multithread safe and prefered way?