threads & gtk
- From: chabayo <chabayo yahoo de>
- To: gtk-app-devel-list gnome org
- Subject: threads & gtk
- Date: Sat, 05 Aug 2006 18:22:17 +0200
Hello, i'll ask for help with gtk & threading.
The rules of my template:
Create an output Window.
Listen on a Socket for commands.
Listen on a Socket for data.
I wanna have 3 threads - naturally.
Therefor i built that scheme:
main () {
...
/* init threads */
g_thread_init(NULL);
gdk_threads_init();
...
if ( ! pid ) {
pid_t pid=fork ();
gdk_threads_enter ();
...
gdk_threads_leave ();
exit ( 0 ); }
else {
pid_t pid=fork ();
gdk_threads_enter ();
...
gdk_threads_leave ();
exit ( 0 ); }
}
...somebody will help me that to trick??
nynhjan
___________________________________________________________
Der frühe Vogel fängt den Wurm. Hier gelangen Sie zum neuen Yahoo! Mail: http://mail.yahoo.de
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]