join thread

Need help with C, C++, perl, python, etc?

join thread

Postby j6df » 2006-08-30 17:41

//this is my thread:
public class threadMoveRight implements Runnable{
Storeroom sto = new Storeroom();
String url;
Image image1;
boolean flag;

public threadMoveRight(String purl,Image pImage) {
this.url = purl;
this.image1 = pImage;
}

public void run() {
searchData();
flag = true;
}

}
//and after the user press on right he go to this code :
if (sto.doINeedConection){
while (sto.flag==false){
sleep();
}
}
repaint();
//the result:
//the program stay a lot of time in the sleep
j6df
 
Posts: 9
Joined: 2006-08-30 17:37

Postby utrrrongeeb » 2006-08-31 09:28

Could you explain what it is, and what it's supposed to do?
utrrrongeeb formerly lecaro
Art #429775 on 'Etch' 4.0r0
User avatar
utrrrongeeb
 
Posts: 255
Joined: 2006-05-14 09:48
Location: Eastern Canada

draw image

Postby j6df » 2006-08-31 09:41

there is big picture that i get from the internet but the user see only the center picture so after the user press on (right,left,up,down) right for example the picture go to right but when he press a lot so the picture go to the end - I need to call new data from the internet
the problem is in the synchronization - I need that the data will be to the new data (after calc the new point)
j6df
 
Posts: 9
Joined: 2006-08-30 17:37

Postby lacek » 2006-08-31 10:07

Well, I don't know if I get you right, but why don't you download the whole picture, and put it on a scroller of some kind?
Also, what language is this code written in?
lacek
Moderator Team Member
 
Posts: 769
Joined: 2004-03-11 18:49
Location: Budapest, Hungary

this java code is for mobile

Postby j6df » 2006-08-31 11:21

so you can not download all data - you dont have memory for all the picture
j6df
 
Posts: 9
Joined: 2006-08-30 17:37


Return to Programming

Who is online

Users browsing this forum: No registered users and 7 guests

fashionable