QJ.NET | Videos | Forums | iPhone | MMORPG | Nintendo DS | Wii | PlayStation 3 | PSP | Xbox 360 | PC | Downloads | Contact Us
Forums | Gaming News | Videos | Downloads | Today's Posts | Mark Forums Read | Chat | FAQ | Members List | Contact

QJ.net Game Discussion - PSP, Xbox, Wii, PS3, PSP Homebrew, and PSP Guides

Go Back   QJ.net Game Discussion - PSP, Xbox, Wii, PS3, PSP Homebrew, and PSP Guides > Developers Corner > PSP Development, Hacks, and Homebrew > PSP Development Forum
The above video goes away if you are a member and logged in, so log in now!

Two parallel functions?

This is a discussion on Two parallel functions? within the PSP Development Forum forums, part of the PSP Development, Hacks, and Homebrew category; Does anybody know how to run two functions at the same time in lua? /lingon :icon_smil...

Reply
 
LinkBack Thread Tools
Old 12-11-2005, 09:30 AM   #1
 
lingon's Avatar
 
Join Date: Sep 2005
Posts: 122
Trader Feedback: 0
Default Two parallel functions?

Does anybody know how to run two functions at the same time in lua?
/lingon :icon_smil
lingon is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old 12-11-2005, 03:09 PM   #2
Art

Bush Programmer
 
Art's Avatar
 
Join Date: Nov 2005
Posts: 3,557
Trader Feedback: 0
Default

I doubt that is possible.
The functions that you writ in LUA appear to be non-reentrant,
exept for anything to do with music or sound that seem to run independently.
You may be able to rewrite the code so that they appear to be running at the same time.

Last edited by Art; 12-11-2005 at 03:13 PM..
Art is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old 12-11-2005, 03:11 PM   #3
OMGZ0R this guy is 1337
 
elevationsnow's Avatar
 
Join Date: Aug 2005
Location: Minnesota, MN (originally england)
Posts: 218
Trader Feedback: 0
Default

not possible just run them in the same loop and dont display there output untill both routines are finished
__________________
[IMG]http://img26.imageshack.us/img26/4208/sigcopy0lu.jpg[/IMG]
elevationsnow is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old 12-12-2005, 05:34 AM   #4
 
lingon's Avatar
 
Join Date: Sep 2005
Posts: 122
Trader Feedback: 0
Default

Okay, thanks =)
lingon is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply

Tags
functions , parallel

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off



All times are GMT -8. The time now is 06:33 AM.



Use of this Web site constitutes acceptance of the TERMS & CONDITIONS and PRIVACY POLICY
Copyright © 2009, QJ.NET. All Rights Reserved.
Contact Us