本文整理汇总了C++中EFI_BOOT_SERVICES::Stall方法的典型用法代码示例。如果您正苦于以下问题:C++ EFI_BOOT_SERVICES::Stall方法的具体用法?C++ EFI_BOOT_SERVICES::Stall怎么用?C++ EFI_BOOT_SERVICES::Stall使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类EFI_BOOT_SERVICES
的用法示例。
在下文中一共展示了EFI_BOOT_SERVICES::Stall方法的2个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C++代码示例。
示例1: efi_udelay
/**
* Delay for a fixed number of microseconds
*
* @v usecs Number of microseconds for which to delay
*/
static void efi_udelay ( unsigned long usecs ) {
EFI_BOOT_SERVICES *bs = efi_systab->BootServices;
EFI_STATUS efirc;
if ( ( efirc = bs->Stall ( usecs ) ) != 0 ) {
DBG ( "EFI could not delay for %ldus: %s\n",
usecs, efi_strerror ( efirc ) );
/* Probably screwed */
}
}
示例2:
EFI_STATUS EFIAPI
OvrStall(
IN UINTN Microseconds
)
{
EFI_STATUS Status;
Status = gOrgBS.Stall(Microseconds);
// do not print - too many calls
//PRINT("->Stall(%d) = %r\n", Microseconds, Status);
return Status;
}