Mercurial > pidgin.yaz
diff src/toc.c @ 212:89c9334d3484
[gaim-migrate @ 222]
Added pthread code. Keep your fingers crossed.... :P
committer: Tailor Script <tailor@pidgin.im>
author | Eric Warmenhoven <eric@warmenhoven.org> |
---|---|
date | Wed, 03 May 2000 10:01:19 +0000 |
parents | 2042a38da38b |
children | f7e17fb767eb |
line wrap: on
line diff
--- a/src/toc.c Wed May 03 00:34:30 2000 +0000 +++ b/src/toc.c Wed May 03 10:01:19 2000 +0000 @@ -32,6 +32,7 @@ #include <stdio.h> #include <time.h> #include <sys/socket.h> +#include <pthread.h> #include "gaim.h" #include "gnome_applet_mgr.h" @@ -607,6 +608,8 @@ if (!strcmp(uuid, FILE_SEND_UID)) { /* we're getting a file */ + pthread_t thread; + for (i=0; i<4; i++) { sscanf(strtok(NULL, ":"), "%d", &unk[i]); if (unk[i] == 10001) @@ -644,7 +647,9 @@ for (i--; i >= 0; i--) g_free(messages[i]); - accept_file_dialog(ft); + pthread_create(&thread, NULL, + (void*(*)(void*))accept_file_dialog, ft); + pthread_detach(thread); } else if (!strcmp(uuid, FILE_GET_UID)) { /* we're sending a file */ for (i=0; i<4; i++) {