libdirectfb.so contains both master and slave code. The first DirectFB application that is started will detect that it is the first, and it will create the shared memory object and initialize the 'fusion' library. All the next applications will find this shared memory object and therefore assume that they are slaves.
The Master is the only application that is able to control non-shareable resources. e.g. The graphics drivers must make sure that, if a slave wants to access such a resource, the access request is passed to the master application, which will perform the access. The DirectFB-API is unaware of master/slave, so a user of DirectFB does not need to know the difference. Greets Niels zhenghe zhang wrote: > Hi all > I am learning the "directfb", now I have a problem. I hope you tell > me! > I don't understand the master/slave process and the relations of them. > > Thank you > zh > > _______________________________________________ > directfb-users mailing list > directfb-users@directfb.org > http://mail.directfb.org/cgi-bin/mailman/listinfo/directfb-users > > -- .------------------------------------------. | DirectFB - Hardware accelerated graphics | | http://www.directfb.org/ | "------------------------------------------" _______________________________________________ directfb-users mailing list directfb-users@directfb.org http://mail.directfb.org/cgi-bin/mailman/listinfo/directfb-users