Show: Delphi C++
Display Preferences

System.Classes.TThread.Resume

From XE2 API Documentation
Jump to: navigation, search

Delphi

procedure Resume; deprecated;

C++

void __fastcall Resume _DEPRECATED_ATTRIBUTE0 (void);

Contents

Properties

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

Description

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

Personal tools
Previous Versions
Translations