Thread: [PI] Deadlock issue

Results 1 to 3 of 3
  1. #1 [PI] Deadlock issue 
    Catherby Developer
    Mini Slurpee's Avatar
    Join Date
    Apr 2011
    Posts
    747
    Thanks given
    80
    Thanks received
    86
    Rep Power
    31
    I was adding the Deadlock fix from Pixels Snippet, and he said not to touch the method
    Code:
    public void queueMessage(Packet arg1) {
    so i did i just searched and found out that theses were commented out.. should it be like this ?
    Code:
    	public void queueMessage(Packet arg1) {
    		synchronized(queuedPackets) {
    			//if (arg1.getId() != 41)
    				queuedPackets.add(arg1);
    			//else
    				//processPacket(arg1);
    		}
    	}
    Attached image
    “I have not failed, I've just found 10,000 ways that won't work.”
    “Any fool can write code that a computer can understand. Good programmers write code that humans can understand.”
    Reply With Quote  
     

  2. #2  
    Registered Member
    Join Date
    Jul 2011
    Posts
    45
    Thanks given
    0
    Thanks received
    3
    Rep Power
    1
    Yes, it should be like that.
    Reply With Quote  
     

  3. #3  
    Respected Member


    Join Date
    Jan 2009
    Posts
    5,743
    Thanks given
    1,162
    Thanks received
    3,603
    Rep Power
    5000
    Do not touch means do not alter. So no it shouldn't be commented out. Anything to do with the packet queue leave alone!
    Reply With Quote  
     


Thread Information
Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)


User Tag List

Similar Threads

  1. [PI] Deadlock issue fix
    By Spooky in forum Snippets
    Replies: 115
    Last Post: 09-29-2012, 04:25 AM
  2. [PI] Deadlock Issue
    By Santi Cazorla in forum Help
    Replies: 5
    Last Post: 02-21-2011, 02:29 PM
  3. PI deadlock
    By Mickt3 in forum Help
    Replies: 3
    Last Post: 02-19-2011, 06:23 PM
  4. could this be the deadlock issue?
    By bronzekid5000 in forum Help
    Replies: 6
    Last Post: 01-28-2011, 04:35 AM
  5. Fixing PI Deadlock Issue
    By Sanity in forum Selling
    Replies: 10
    Last Post: 01-03-2011, 11:56 PM
Posting Permissions
  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •