faridco / rsox

libsox binding for Ruby
18 stars 20 forks source link

Thread-Safety #10

Open esshka opened 1 year ago

esshka commented 1 year ago

Be aware that the code doesn't seem to handle concurrency well. If two threads call rsox_new simultaneously, rsox_instance_count could be incremented concurrently, leading to issues.