I've got some code that draws onto directfb surfaces by directly
manipulating the pixel data for the surface.  The surface is created
with DSDESC_PREALLOCATED with the DFBSurfaceDescription preallocated
structure filled in.

I'd like to perform some of the drawing operations using the (hardware
accelerated) directfb functions, but most of the drawing will still be
performed by manipulating the surface data directly.

What do I have to do to ensure any directfb operations have completed
before I can manipulate the surface data safely?

Are there similar calls that need to be made in a multi-threaded
environment?  Currently the application uses mutexes to ensure that only
a single thread uses the directfb API at a time (this appears to work),
but if the operations are asynchronous then presumably this is not
sufficient.

-- 
Andrew Oakley
_______________________________________________
directfb-dev mailing list
directfb-dev@directfb.org
http://mail.directfb.org/cgi-bin/mailman/listinfo/directfb-dev

Reply via email to