NoMercy Master Cheater
Reputation: 1
Joined: 09 Feb 2009 Posts: 289
|
Posted: Sun Aug 19, 2012 6:56 am Post subject: 3 threads |
|
|
Hello,
I'm coding my own little game, which has 3 threads, the GUI thread, game logic thread and the packet recv thread. I'm coding this in C#. I believe the best thing I could do is to somehow make the Game it's Thread know that it has to do something, wether it's from the user or from a packet.
I've tried the follow code (which i know FAILS in all ways, I was just trying. Never did this before)
Except that it does not work and crashes I use the Thread.Resume() which should not be used anymore.
| Code: |
Code I could not show here, cause of words I guess?
http://pastebin.com/Ep58X53L
|
But I can't figure out what I should do?
So if someone could help me,
Grz
EDIT: Fixed code
|
|