trema / trema-edge

Transient repository for Trema OF1.3 branch
27 stars 14 forks source link

make queue thread safe in push/pop operation #122

Closed iHiroakiKawai closed 10 years ago

iHiroakiKawai commented 10 years ago

Two threads are touching on a same queue without a mutex in switch implementation. I observed sometimes queue length becomes negative(INTMAX), which result in infinity loop sometimes, or unexpected behaviors.

nickkaranatsios commented 10 years ago

I prefer option 1) because arc/lib directory should not depend on other directories especially src/switch/data path.Kawai-San could you please fix.