RobotWebTools / rclnodejs

Node.js version of ROS 2.0 client
https://docs.ros.org/en/humble/Concepts/Basic/About-Client-Libraries.html?highlight=rclnodejs#community-maintained
Apache License 2.0
319 stars 70 forks source link

Use Read-write locks to protect the data shared between threads #662

Closed minggangw closed 4 years ago

minggangw commented 4 years ago

Currently, we are using uv_mutex_lock/uv_mutex_unlock to protect data shared between threads, but we could use Read-write locks to make it more efficient.

Fix #649

coveralls commented 4 years ago

Coverage Status

Coverage increased (+0.06%) to 86.191% when pulling 344e054227e94277dd4c784a516cd392cbd1cba1 on minggangw:foxy-fitzroy into f19dc6a8be3eb5f741241dc4370769a087ef1cc2 on RobotWebTools:develop.