2 Copyright © 1995-2007, The AROS Development Team. All rights reserved.
9 #include <proto/exec.h>
10 #include <exec/tasks.h>
11 #include <graphics/gfxbase.h>
13 static int bug
; /* Added because of bug in cxref */
15 /*****************************************************************************
19 AROS_LH0(VOID
, WaitTOF
,
24 struct GfxBase
*, GfxBase
, 45, Graphics
)
28 Wait for vertical blank.
34 Adds the task to the TOF queue; it will be signalled when the vertical
35 blank interrupt occurs.
49 *****************************************************************************/
53 struct Node wait
; /* We cannot use the task's node here as that is
54 used to queue the task in Wait() */
56 wait
.ln_Name
= (char *)FindTask(NULL
);
57 SetSignal(0, SIGF_SINGLE
);
61 AddTail((struct List
*)&GfxBase
->TOF_WaitQ
, (struct Node
*)&wait
);
63 Remove((struct Node
*)&wait
);