Lưu ý
Cần có ủy quyền mới truy nhập được vào trang này. Bạn có thể thử đăng nhập hoặc thay đổi thư mục.
Cần có ủy quyền mới truy nhập được vào trang này. Bạn có thể thử thay đổi thư mục.
Contains values that indicate the action a host should take if an operation requested by the common language runtime (CLR) blocks.
Syntax
typedef enum {
WAIT_MSGPUMP = 0x1,
WAIT_ALERTABLE = 0x2,
WAIT_NOTINDEADLOCK = 0x4,
} WAIT_OPTION;
Members
| Member | Description |
|---|---|
WAIT_ALERTABLE |
Notifies the host that the task should be awakened if the CLR calls the IHostTask::Alert method. |
WAIT_MSGPUMP |
Notifies the host that it must pump messages on the current OS thread if the thread becomes blocked. The runtime specifies this value only on an STA thread. |
WAIT_NOTINDEADLOCK |
Notifies the host that the specified synchronization request cannot be broken by a host. That is, the host cannot return HOST_E_DEADLOCK. |
Remarks
The IHostTaskManager::Sleep and IHostTaskManager::SwitchToTask methods both take a parameter of this type.
Requirements
Platforms: See System Requirements.
Header: MSCorEE.h
Library: MSCorEE.dll
.NET Framework Versions: Available since 2.0
See also
Cộng tác với chúng tôi trên GitHub
Bạn có thể tìm thấy nguồn cho nội dung này trên GitHub, nơi bạn cũng có thể tạo và xem lại các vấn đề và yêu cầu kéo. Để biết thêm thông tin, hãy xem hướng dẫn dành cho người đóng góp của chúng tôi.