c - Adding gtk graphics to existing console application - shared memory? -
i have concurent application (concurrent simulation of airport) made system v library (semaphores, message queue) , multiple processes.
i'm not allowed use threads, that's why have processes thread , multiple 'planes' processes.
i add graphics show traffic on airport gtk (with cairo) library.
how add graphic? when tried add airport process, gtk_main block whole application. thought creating process , add graphics shared memory i've read it's not going work.
what easiest/the best option?
thank much!
it sounds should make separate gui process other processes can send messages to. 1 way gui process export dbus interface other processes can connect to. way, when gui process receives message process, gtk main loop emit signal, , can schedule signal handler deal , update gui accordingly.
Comments
Post a Comment