On 03/28/2018 12:04 PM, Pintu Kumar wrote:
> On Wed, Mar 28, 2018 at 1:44 PM, Julien Blanc <[email protected]> wrote:
>> Le mercredi 28 mars 2018 à 13:24 +0530, Pintu Kumar a écrit :
>>> Hi,
>>>
>>> We are facing one issue on Xenomai-3 on x86_64 system.
>>> Kernel: 4.9.51
>>> ipipe version: 4
>>> # /usr/xenomai/sbin/version
>>> Xenomai/cobalt v3.0.6 -- #5956064 (2018-03-20 12:13:33 +0100)
>>>
>>> Its a very simple API level test.
>>> We create a condition variable and wait for the condition inside a
>>> task.
>>> Then, we immediately signal the condition from the main thread, and
>>> simply
>>> wait for the test to finish.
>>
>> Looks like you're signalling the condition variable before it is even
>> begin waited by the newly created thread, so i would say the behaviour
>> is normal.
>>
>> If this is just for test purpose, you can for example add a sleep
>> inside your main thread so that you make sure that the child thread
>> reaches the rt_cond_wait call before the main thread executes
>> rt_cond_signal.
>>
> 
> Oh yes, I already tried by adding 1 second sleep before signal, but still the
> condition task hangs.
> 
> This test case works fine on Xenomai 2.6
> 

If you believe there is a bug, can you try to debug this? Some help from
users would not harm. (make sure to build with --enable-debug=full if
you intend to do so).

Thanks,

-- 
Philippe.

_______________________________________________
Xenomai mailing list
[email protected]
https://xenomai.org/mailman/listinfo/xenomai

Reply via email to