Deng XueFeng wrote: > no, when i do N(N >= 2) blit from N tmp surface to one main surface, > the display maybe be confused and the cpu will reach 100%. > after i add lock to every DFB interface(Blit, StretchBlit, ....), all > works well. > > I don't known which one should add lock in multithreaded env.
You should not use an IDirectFBSurface interface instance from multiple threads, at least not all functions are safe. The core implementation IS thread (even process) safe and you just need to create another instance of IDirectFBSurface using GetSubSurface(surface,NULL,&new_interface). -- Best regards, Denis Oliver Kropp .------------------------------------------. | DirectFB - Hardware accelerated graphics | | http://www.directfb.org/ | "------------------------------------------" _______________________________________________ directfb-dev mailing list directfb-dev@directfb.org http://mail.directfb.org/cgi-bin/mailman/listinfo/directfb-dev