This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug go/46986] Go is not supported on Darwin
- From: "howarth at nitro dot med.uc.edu" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Thu, 16 Feb 2012 16:22:02 +0000
- Subject: [Bug go/46986] Go is not supported on Darwin
- Auto-submitted: auto-generated
- References: <bug-46986-4@http.gcc.gnu.org/bugzilla/>
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=46986
--- Comment #27 from Jack Howarth <howarth at nitro dot med.uc.edu> 2012-02-16 16:22:02 UTC ---
(In reply to comment #26)
> I think it would be great if somebody would tell me something I can used
> instead of makecontext/getcontext/setcontext. Unless somebody can come up with
> one, then I think the only alternative is to write our own processor-specific
> versions and distribute them with libgo.
>
> The functions were removed from POSIX not because there was any adequate
> replacement, but because they suffer from some design deficiencies.
Would implementing "cooperative threading" with pthreads, perhaps with
conditional variables, as described in...
http://stackoverflow.com/questions/4298986/is-there-something-to-replace-the-ucontext-h-functions
be appropriate?