Using shared memory and thread

bioinfornatics bioinfornatics at fedoraproject.org
Tue Nov 5 08:50:28 UTC 2019


On Tuesday, 5 November 2019 at 00:07:40 UTC, bioinfornatics wrote:
> On Tuesday, 5 November 2019 at 00:04:05 UTC, bioinfornatics 
> wrote:
>> On Monday, 4 November 2019 at 22:19:29 UTC, bioinfornatics 
>> wrote:
>>> On Monday, 4 November 2019 at 21:53:45 UTC, bioinfornatics 
>>> wrote:
>>>> On Monday, 4 November 2019 at 19:53:29 UTC, bioinfornatics 
>>>> wrote:
>>>>> [...]
>>>>
>>>> One image reveals more than a thousand words, see my picture 
>>>> :-)
>>>>    -> http://pix.toile-libre.org/?img=1572906675.png
>>>
>>> oups got a problem with the alpha layer:
>>>    -> http://pix.toile-libre.org/?img=1572908302.png
>>
>> here my (not working) snippet code:
>>    -> 
>> https://run.dlang.io/gist/75429dcb8612e00635f7d53aabc4776f
>>
>> the example do not meet exactly the spec and he do not compile.
>
> arf the generated link raise a 404, here a gist

I got some help from `feep` on IRC and he show me that the task 
pool can not to be const as reduce is not.
So now I have this script:
----> 
https://gist.github.com/run-dlang/46c753f7233a624bb5639db615c9634a
And this error:
----> 
/dlang/dmd/linux/bin64/../../src/phobos/std/parallelism.d(2730): 
Error: function std.parallelism.TaskPool.reduce!"a + 
b".reduce!(MapResult!(__lambda3, Result)).reduce cannot get frame 
pointer to onlineapp.countAllLines

I found this thread which talk about this error, but that did not 
help me to fix it: https://github.com/dlang/phobos/pull/4915

Thanks for your help




> https://gist.github.com/run-dlang/4ffcc0641acef5eedf52a17c4995599b




More information about the Digitalmars-d-learn mailing list