LibEvent, signals or communication between threads

Shadow_exe shadow_exe at ukr.net
Tue May 8 08:11:10 PDT 2012


Yes, there is some communication between the thread, but it is 
locked and the thread waits for him not come something like a 
signal.
My task is not to block the trade and send a signal in this 
thread.

On Tuesday, 8 May 2012 at 14:29:37 UTC, Gor Gyolchanyan wrote:
> Try looking at std.concurrency.
> You'll find a message passing mechanism there.
>
> On Tue, May 8, 2012 at 2:25 PM, Shadow_exe <shadow_exe at ukr.net> 
> wrote:
>> Hello everyone.
>> Faced with an interesting challenge, and how to solve it and 
>> found no
>> tracks.
>> The problem is the following:
>> I have 2 thread, which are created in the main flow, 
>> respectively, of each
>> other, they do not know, but I want to create a dialogue 
>> between the thread.
>> I want to first thread could tell the second thread to perform 
>> some
>> function.
>> The queue is implemented through a library libevent.
>>
>> Who faced a similar problem or just knows how to solve this 
>> issue - please
>> help.




More information about the Digitalmars-d mailing list