Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- // bullet thread
- void run() {
- synchronized (lockObject) {
- doBulletTick();
- try {
- this.wait();
- } catch (InterruptedException e) {
- e.printStackTrace(); // тащемта этого быть не должно
- }
- }
- }
- // client thread
- void onClientTick() {
- synchronized (lockObject) {
- loadValuesFromBullet();
- this.notify();
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement