For a simple application as a multithreaded ray-trace the current
implementation seems to work but if a thread creates threads it'll probably
crash again. To make this work the prototype of parallel_mapping() has
probable go to parallel.h (where parallel_cpp11thread() should go to) and
be used in parallel_cpp11thread().  And, the semaphores probably need a fix
too, as already mentioned.

If a GCi student reads this and wants to work on this: Take the "Test and
report on new C++11 parallel threading implementation" task, make sure you
are using C++11 threads, test them (make the program crash ;), or write a
test program (this could be easier to do and to reproduce), and submit your
findings.  Based on this we can create a new task for fixing the bugs.

Daniel

2017-12-15 15:05 GMT+01:00 Christopher Sean Morrison <brl...@mac.com>:

>
> Upon closer inspection, it looks like the semaphore.c changes weren't
> committed which could be messing with the book keeping and thread
> coordination.
>
> Cheers!
> Sean
>
>
> > On Dec 15, 2017, at 3:23 AM, Daniel Roßberg <danielmrossb...@gmail.com>
> wrote:
> >
> > For example, it isn't connected to the parallel_mapping() book-keeping.
> I don't know how bad it is.
> >
> > Regards,
> >     Daniel
> > ------------------------------------------------------------
> ------------------
> > Check out the vibrant tech community on one of the world's most
> > engaging tech sites, Slashdot.org! http://sdm.link/slashdot______
> _________________________________________
> > BRL-CAD Developer mailing list
> > brlcad-devel@lists.sourceforge.net
> > https://lists.sourceforge.net/lists/listinfo/brlcad-devel
>
>
> ------------------------------------------------------------
> ------------------
> Check out the vibrant tech community on one of the world's most
> engaging tech sites, Slashdot.org! http://sdm.link/slashdot
> _______________________________________________
> BRL-CAD Developer mailing list
> brlcad-devel@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/brlcad-devel
>
------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
_______________________________________________
BRL-CAD Developer mailing list
brlcad-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/brlcad-devel

Reply via email to