From: Sebastian B. <sb...@us...> - 2013-12-24 08:53:30
|
Update of /cvsroot/simplemail/simplemail/gtk In directory sfp-cvs-1.v30.ch3.sourceforge.com:/tmp/cvs-serv28207/gtk Modified Files: subthreads.c Log Message: Implemented naive version of thread_get_main(). Index: subthreads.c =================================================================== RCS file: /cvsroot/simplemail/simplemail/gtk/subthreads.c,v retrieving revision 1.21 retrieving revision 1.22 diff -u -d -r1.21 -r1.22 --- subthreads.c 24 Dec 2013 08:51:51 -0000 1.21 +++ subthreads.c 24 Dec 2013 08:53:28 -0000 1.22 @@ -70,6 +70,8 @@ GMainLoop *main_loop; }; +static struct thread_s main_thread; + /***************************************************************************************/ int init_threads(void) @@ -302,6 +304,13 @@ /***************************************************************************************/ +thread_t thread_get_main(void) +{ + return (thread_t)&main_thread; +} + +/***************************************************************************************/ + thread_t thread_get(void) { struct thread_s *t; |