digitalmars.D - receiveOnly behavior
- jdrewsen (7/7) May 04 2011 import std.concurrency;
- Sean Kelly (7/14) May 04 2011 spawn a thread to receive anything from but is this the expected =
- Jonas Drewsen (3/12) May 05 2011 Thank you.
import std.concurrency;
void main(string[] args) {
receiveOnly!bool();
}
This simple program results in segmentation fault. I know i does not
spawn a thread to receive anything from but is this the expected behavior?
/Jonas
May 04 2011
On May 4, 2011, at 2:05 PM, jdrewsen wrote:
import std.concurrency;
=20
void main(string[] args) {
receiveOnly!bool();
}
=20
This simple program results in segmentation fault. I know i does not =
spawn a thread to receive anything from but is this the expected =
behavior?
This was a known issue when calling receive() in the main thread before =
ever calling thisTid(). Doing so seemed rather unlikely, but fixing =
this was a trivial code change so I've just done so. Expect your sample =
to not segfault in the next release.=
May 04 2011
On 05/05/11 01.31, Sean Kelly wrote:On May 4, 2011, at 2:05 PM, jdrewsen wrote:Thank you. /Jonasimport std.concurrency; void main(string[] args) { receiveOnly!bool(); } This simple program results in segmentation fault. I know i does not spawn a thread to receive anything from but is this the expected behavior?This was a known issue when calling receive() in the main thread before ever calling thisTid(). Doing so seemed rather unlikely, but fixing this was a trivial code change so I've just done so. Expect your sample to not segfault in the next release.
May 05 2011








Jonas Drewsen <jdrewsen nospam.com>