[go-nuts] Re: Call of a Go-function inside C-code

2019-10-03 Thread dr . ch . maurer
Dear Ian Lance Taylor, thankyou very much for your hint! Kind regards, Christian Am Mittwoch, 2. Oktober 2019 04:36:4D8 UTC+2 schrieb Christian Maurer: > > Dear community, > > what is wrong with the following simple code, which yields "undefined > reference for F" ? > > > file f.go: > > package

[go-nuts] Re: Call of a Go-function inside C-code

2019-10-03 Thread dr . ch . maurer
Dear Ian Lance Taylor, thankyou very much for your hint! Kind regards, Christian -- You received this message because you are subscribed to the Google Groups "golang-nuts" group. To unsubscribe from this group and stop receiving emails from it, send an email to golang-nuts+unsubscr...@googleg

[go-nuts] Call of a Go-function inside C-code

2019-10-01 Thread dr . ch . maurer
Dear community, what is wrong with the following simple code, which yields "undefined reference for F" ? file f.go: package main // #include "f.h" // void f (int a) { F(a) } import "C" func F(a int) { println(a) } func main() { C.f(7) } file f.h: extern void F (int a); //export F Thanks

[go-nuts] Re: mutual exclusion algorithm of Dijkstra - strange behaviour

2019-08-16 Thread dr . ch . maurer
Dear Community and dear Go-developers, Meanwhile it is clear why things do not work: The Go-Scheduler is unable to allow to switch to another goroutine in busy-waiting-loops - the only possibility to get around that problem is either to put "switch-steps" into the source - either "time.Sleep(1)"

[go-nuts] mutual exclusion algorithm of Dijkstra - strange behaviour

2017-10-30 Thread dr . ch . maurer
Dear Go-community, I noticed a very strange effect by translating the mutual exclusion algorithm of E. W. Dijkstra to Go. Reference: Cooperating Sequential Processes. Technical Report EWD-123, Technological University Eindhoven (1965) http://www.cs.utexas.edu/users/EWD/ewd01xx/EWD123.PDF) I