TraceLoggerUseMutexSynchronisation Property

Enables TraceLogger's historic mutex-based synchronization mechanic (not recommended, see remarks).

Definition

Namespace: ASCOM.Utilities
Assembly: ASCOM.Utilities (in ASCOM.Utilities.dll) Version: 7.1.3+4851.c5da65c2b
C#
public static bool UseMutexSynchronisation { get; set; }

Property Value

Boolean

Remarks

Since introduction in 2009, TraceLogger used a global Windows mutex to synchronise writing to log files. The impact was that only one write could occur at a time across the whole PC.

Due to a variety of stability issues reported after release of Platform 7.1 Update 2 in February 2026, the default locking mechanic was changed to an instance local lock() because it is sufficient to protect the file being written and because it engineers out any possibility of unintended inter-process synchronisation.

It is strongly recommended that the new default lock() synchronisation is used as it is faster and does not have the potential to cause application issues due to mutex timeouts.

Only set true if inter-process synchronisation is essential.

See Also