title: Multithreads issue
body: <p>I have an aplicaton In <code>libgdx</code> with two threads. In one thread the method generate numbers (it works only if I press buton, I use <code>Gdx.graphics.setContinuousRendering(false);</code> to stop it) </p>
  
  <pre><code>public int numbersShow(){
      List&lt;String&gt; d = generateNumbers.generate();
       a = d.get(0);
       b = d.get(1);
       c = d.get(2);
       e = d.get(3);
       f = d.get(4);
       pos1 = (Integer) p.get(0);
       pos2 = (Integer) p.get(1);
       pos3 = (Integer) p.get(2);
  
      if(pos1==0){
          number.draw(batch, e, 50, 350);
       position=0;
      }
      if(pos1==1){
          number.draw(batch, f, 50, 350);
          position=1;
      }
      if(pos1==2){
          number.draw(batch, c, 50, 350);
          position=2;
      }
           return position;
  }
  </code></pre>
  
  <p>The second method run all the time (In runnable class) and I want to take „position” variable:</p>
  
  <pre><code>@Override
  public void run() {
      Gdx.graphics.requestRendering();
      numbersGame = new NumbersGame().position;
      if(Gdx.input.isKeyPressed(Input.Keys.NUM_1)){
          Gdx.app.log("pressed", "1");
       p1 = numbersGame;
          Gdx.app.log("p1", ""+p1);
  
      }
  </code></pre>
  
  <p>But all the time the <code>p1 = 0</code> (but <code>numbersShow()</code> method generates different <code>values 0,1 ,2…</code>). I don’t know where I make mistake. Thanks for help.</p>