System.Classes.TThread.Resume

From RAD Studio API Documentation
Jump to: navigation, search

Delphi

procedure Resume; deprecated;

C++

void __fastcall Resume _DEPRECATED_ATTRIBUTE0 ();

Properties

Type Visibility Source Unit Parent
procedure
function
public
System.Classes.pas
System.Classes.hpp
System.Classes TThread

Description

Attention: Resume is deprecated.

Restarts the execution of a suspended thread. Resume was intended to be used by debuggers and is deprecated in RAD Studio XE, in the year 2010.

Call Resume to cause a suspended thread to start running again. Calls to Suspend can be nested; Resume must be called the same number of times Suspend was called before the thread resumes execution.

To start the execution of a newly created suspended thread, use the Start method.

Warning: The Resume and Suspend methods should only be used for debugging purposes. Suspending a thread using Suspend can lead to deadlocks and undefined behavior within your application. Proper thread synchronization techniques should be based on TEvent and TMutex.

See Also


Code Examples