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 /*****************************************************************************
17 AROS_LH0(VOID
, WaitTOF
,
22 struct GfxBase
*, GfxBase
, 45, Graphics
)
26 Wait for vertical blank.
32 Adds the task to the TOF queue; it will be signalled when the vertical
33 blank interrupt occurs.
47 *****************************************************************************/
51 struct Node wait
; /* We cannot use the task's node here as that is
52 used to queue the task in Wait() */
54 wait
.ln_Name
= (char *)FindTask(NULL
);
55 SetSignal(0, SIGF_SINGLE
);
59 AddTail((struct List
*)&GfxBase
->TOF_WaitQ
, (struct Node
*)&wait
);
61 Remove((struct Node
*)&wait
);