[#BloombergLP-bdlmt-TimerEventScheduler-cancelAllClocks]
= xref:BloombergLP.adoc[BloombergLP]::xref:BloombergLP/bdlmt.adoc[bdlmt]::xref:BloombergLP/bdlmt/TimerEventScheduler.adoc[TimerEventScheduler]::cancelAllClocks
:relfileprefix: ../../../
:mrdocs:

Cancel all clocks&period; If the optionally specified `wait` is true, then ensure that any clock event still in this scheduler is either cancelled or has been dispatched before this call returns&period; If this method is being invoked from the dispatcher thread, then the `wait` is ignored to avoid deadlock&period;

== Synopsis

Declared in `&lt;bdlmt&lowbar;timereventscheduler&period;h&gt;`

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
void
cancelAllClocks(bool wait = false);
----


[.small]#Created with https://www.mrdocs.com[MrDocs]#
