Results 22 comments of mihacooper

> **1.** > Why not to add this methods to mutex itself. Yes, it's a good idea > **2.** Idiom for this is `synchronized`. > https://docs.oracle.com/javase/tutorial/essential/concurrency/syncmeth.html I don't get what...

We don't really need regular mutex if we have shared mutex (just use unique lock). If we have two types of locks 'shared' and 'unique' then 'synchronized' is not really...

Hi, the problem is that effil is not able to transmit C-functions between Lua states. So, you just can't put C-function in any effil object. The only solution is to...

The idea of this task is do not set hook when thread starts but do it only when the first invocation of `thread:pause` or `thread:cancel` occurs

There is no cross-platform solution for that, it requires platform-specific code

Hi, the problem did not caused by custom env. The problem is that tonumber is a C-function and C-function is not serializible. This code works: ```lua effil = require('effil') function_code...

It looks possible to impl. I'll try to improve our library

Hi, thanks for feedback. You're right there are 2 errors: 1. Thread runner is not serializable and this is a bug. 2. print is not serializable cause it's C-function and...

Thanks for this work. I will read the poll implementation and give you feedback later. About your question: - Your notice about `thread:get_id()` is right. We should add it. I...

Hi @625781186, can you provide more information/motivation and some examples of code?