Closed cwoolum closed 10 months ago
I suppose you are using V4.4 or even V5.0, so what you experience is different: ESP IDF does not seem to have pthread_rwlock_trywrlock
implemented actually.
I guess if you avoid RWLock::try*
, you'll not get these linker errors.
Similar to #24 , I am unable to compile when using
RwLock.try_write()
. I am callingesp_idf_sys::link_patches();
at the beginning ofmain
. I've also tried addingprintln!("cargo:rustc-link-lib=pthread");
to my build.rs file but it doesn't make any difference.