Hi,

I have not tested on MacOSX but it works fine on gnustep.
I am using glib (gnome) for threads (GThread).
Note that glib != GTK.

http://library.gnome.org/devel/glib/2.20/glib-Threads.html#g-thread-create
http://library.gnome.org/devel/glib/2.20/glib-Threads.html#g-thread-join

I am not a fan of gnome library, I prefer Qt, but I had some restrictions in
my project.
So I advise you to use Qt if you can.

I let you know if I can test it on MacOSX, maybe in one month.

Sincerely

Julien


2009/3/24 Marcus Crestani <crest...@informatik.uni-tuebingen.de>

> Julien,
>
> I saw your posting last month on bug-gnustep.  Currently, I am hitting
> the same problem as you were: I need to run NSApp in another thread.
>
> >>> --Second, "GSRegisterCurrentThread()" is a function specific to
> >>> GNUstep.  And this function is not available using Apple developper
> >>> environment. So I will not be able to compile my code in there.  Any
> >>> comment?
>
> >> I don't know how you would achieve your aim on MacOS.  Possibly you
> >> can just run the application run loop in a secondary thread there
> >> ... I don't know if that works.
>
> > I will try just same code but without calling
> > GSRegisterCurrentThread(). I let you know if that works.
>
> Did you get it to work on MacOSX?  What thread library did you use?
>
> Thanks,
> --
> Marcus
>
_______________________________________________
Bug-gnustep mailing list
Bug-gnustep@gnu.org
http://lists.gnu.org/mailman/listinfo/bug-gnustep

Reply via email to