2 Copyright 1999, Be Incorporated. All Rights Reserved.
3 This file may be used under the terms of the Be Sample Code License.
12 static engine_token engineToken
= { 1, B_2D_ACCELERATION
, NULL
};
16 AccelerantEngineCount(void)
23 AcquireEngine(uint32 capabilities
, uint32 max_wait
,
24 sync_token
* st
, engine_token
** et
)
26 (void)capabilities
; // avoid compiler warning for unused arg
27 (void)max_wait
; // avoid compiler warning for unused arg
29 if (gInfo
.sharedInfo
->engineLock
.Acquire() != B_OK
)
36 // Return an engine token.
43 ReleaseEngine(engine_token
* et
, sync_token
* st
)
45 // Update the sync token, if any.
49 gInfo
.sharedInfo
->engineLock
.Release();
57 gInfo
.WaitIdleEmpty(); // wait until engine is completely idle
62 GetSyncToken(engine_token
* et
, sync_token
* st
)
64 st
->engine_id
= et
->engine_id
;
71 SyncToToken(sync_token
* st
)
73 (void)st
; // avoid compiler warning for unused arg