On Sat, Jul 5, 2014 at 4:38 PM, Wolf Ramovsky <[email protected]> wrote:
> 2014-07-05 23:59 GMT+04:00, Jakub Jermar <[email protected]>:
>> Neither does window_create(). Which brings me to the idea to move the
>> locking of the mutex just before the window is inserted into the window
>> list instead of adding mutex_unlock() to all error paths. What do you
>> think?
>
> I think it's a reasonable idea.

plus you need to at least move the lock after the _unregister call to
avoid spurious (although rare) failures.

jan

>
> _______________________________________________
> HelenOS-devel mailing list
> [email protected]
> http://lists.modry.cz/listinfo/helenos-devel

_______________________________________________
HelenOS-devel mailing list
[email protected]
http://lists.modry.cz/listinfo/helenos-devel

Reply via email to