Marcin Wisniowski
10/26/2019, 6:01 PMLock
class to act as a mutex, for my pthread
using code. Is there any example of that? I tried to do it like ktor: https://github.com/ktorio/ktor/blob/master/ktor-utils/posix/src/io/ktor/util/LockNative.kt but it calls functions like ktor_mutex_create
whose implementation I cannot find. This is my current implementation: https://pastebin.com/THbMhiqD but I'm not sure it's correct. It clearly does something right because my threads don't immediately fail now when I lock with it, but I still get Segmentation Faults sometimes and I think it may be due to my Lock implementation.Arkadii Ivanov
10/26/2019, 6:16 PMArkadii Ivanov
10/26/2019, 6:19 PMMarcin Wisniowski
10/26/2019, 6:36 PMexpect
classes with no actual
implementation, where can I find the implementation?Arkadii Ivanov
10/26/2019, 6:37 PMArkadii Ivanov
10/26/2019, 6:38 PMArkadii Ivanov
10/26/2019, 6:38 PMMarcin Wisniowski
10/26/2019, 6:39 PMArkadii Ivanov
10/26/2019, 6:46 PM