test_prio.adb
来自「用于进行gcc测试」· ADB 代码 · 共 22 行
ADB
22 行
-- { dg-do run }-- { dg-options "-gnatws" }pragma Locking_Policy (Ceiling_Locking);with test_prio_p;use test_prio_p;with text_io; use text_io;procedure Test_Prio is task Tsk is pragma Priority (10); end Tsk; task body Tsk is begin Sema2.Seize; Sema1.Seize; Put_Line ("error"); exception when Program_Error => null; -- OK end; begin null; end;
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?