1
Feature requests / Mutex islocked?
« on: July 18, 2010, 12:57:12 pm »
Hello,
it would be nice too look up if a mutex is locked or not. When you are locking a mutex which is locked you are waiting till it get unlocked?
But if i have some workerhreads and i make mutex on them, i could be able to use everytime a free one. otherwise its waiting till that one i'm handling is free.
i saw such a function at the boost libary the function is called try_lock()
here is the documantation:
http://www.boost.org/doc/libs/1_43_0/doc/html/thread/synchronization.html#thread.synchronization.mutex_concepts
would be nice if you can include it in sfml i think it would be a very nice feature, which makes the multithreading easier.
thanks
Krosan
it would be nice too look up if a mutex is locked or not. When you are locking a mutex which is locked you are waiting till it get unlocked?
But if i have some workerhreads and i make mutex on them, i could be able to use everytime a free one. otherwise its waiting till that one i'm handling is free.
i saw such a function at the boost libary the function is called try_lock()
here is the documantation:
http://www.boost.org/doc/libs/1_43_0/doc/html/thread/synchronization.html#thread.synchronization.mutex_concepts
would be nice if you can include it in sfml i think it would be a very nice feature, which makes the multithreading easier.
thanks
Krosan