2 Copyright © 1995-2001, The AROS Development Team. All rights reserved.
5 Desc: Release the bitter from private usage
9 #include <proto/exec.h>
10 #include <graphics/gfxbase.h>
11 #include <exec/tasks.h>
13 /*****************************************************************************
16 #include <proto/graphics.h>
18 AROS_LH0(void, DisownBlitter
,
24 struct GfxBase
*, GfxBase
, 77, Graphics
)
27 The blitter is returned to usage by other tasks.
46 ******************************************************************************/
48 /* if there are no blits in any of the two queues (QBlit() and QBSBlit())
49 then check whether there is a Task in the BlitWaitQ and put it into
57 GfxBase
-> BlitOwner
= NULL
;
59 if (NULL
== GfxBase
-> blthd
&&
60 NULL
== GfxBase
->bsblthd
)
62 if((struct Node
*) GfxBase
->BlitWaitQ
.lh_Head
!=
63 (struct Node
*)&GfxBase
->BlitWaitQ
.lh_TailPred
)
65 /* make that task ready again! */
66 struct Task
* first
= (struct Task
*)RemHead(&GfxBase
->BlitWaitQ
);
67 first
->tc_State
= TS_READY
;
68 /* Put it into the correct list of tasks */
74 /* let the interrupt handler start the queued blitter requests */