Re: [Discuss-gnuradio] how to define a globe variable in py?
From:
Fernando Rodrigues
Subject:
Re: [Discuss-gnuradio] how to define a globe variable in py?
Date:
Fri, 11 Sep 2009 15:44:34 -0300
you should declare the variable out of the threads and use something similar to a lock. because you're using threads, if you don't use locks, a operation of read/write could lead to mistaken results.