[D-runtime] [D-Programming-Language/druntime] 7d82a5: fix Issue 10976 - thread_joinAll after main exit p...

GitHub noreply at github.com
Tue Sep 17 06:15:36 PDT 2013


  Branch: refs/heads/master
  Home:   https://github.com/D-Programming-Language/druntime
  Commit: 7d82a57c82f9a5359468680f36aa1026243e6f9e
      https://github.com/D-Programming-Language/druntime/commit/7d82a57c82f9a5359468680f36aa1026243e6f9e
  Author: Martin Nowak <code at dawg.eu>
  Date:   2013-09-12 (Thu, 12 Sep 2013)

  Changed paths:
    M src/core/runtime.d
    M src/rt/dmain2.d

  Log Message:
  -----------
  fix Issue 10976 - thread_joinAll after main exit performed too late

- Move thread_joinAll out of rt_term and call it
  immediately after exiting from main instead.
- Make it an error to call rt_term when other non-daemon
  threads are still running.
- It was not a good idea to call thread_joinAll in rt_term
  because with DLLs threads could have been attached and
  outlive the runtime.
- As a side effect it will be called before `static ~this()`
  of the main thread is run.


  Commit: db772968244bf5af37a81060758a1f266e0b698f
      https://github.com/D-Programming-Language/druntime/commit/db772968244bf5af37a81060758a1f266e0b698f
  Author: Alex Rønne Petersen <alex at lycus.org>
  Date:   2013-09-17 (Tue, 17 Sep 2013)

  Changed paths:
    M src/core/runtime.d
    M src/rt/dmain2.d

  Log Message:
  -----------
  Merge pull request #600 from dawgfoto/fix10976

fix Issue 10976 - thread_joinAll after main exit performed too late


Compare: https://github.com/D-Programming-Language/druntime/compare/43110e794461...db772968244b


More information about the D-runtime mailing list