Qbasicnews.com
April 12, 2021, 08:08:11 PM *
Welcome, Guest. Please login or register.

Login with username, password and session length
News: Back to Qbasicnews.com | QB Online Help | FAQ | Chat | All Basic Code | QB Knowledge Base
 
   Home   Help Search Login Register  
Pages: 1 [2]
  Print  
Author Topic: Internal Threading?  (Read 6325 times)
Mitth'raw'nuruodo
Ancient Guru
****
Posts: 515



WWW
« Reply #15 on: April 27, 2005, 07:44:40 PM »

I thought FB wasn't Multiplatform....
Logged

i]"But...it was so beautifully done"[/i]
lillo
Guru
**
Posts: 269


WWW
« Reply #16 on: April 27, 2005, 07:55:15 PM »

Think again. Unless you use Win32 specific libraries, any FB program can be compiled unchanged on Win32 and Linux, plus DOS32 (even though this port is younger and still not fully completed).
You should see good-old QB gorillas.bas running under Linux...  Cool
Logged

ngelo Mottola - EC++
relsoft
*/-\*
*****
Posts: 3927



WWW
« Reply #17 on: April 28, 2005, 07:40:45 AM »

Quote from: "Mitth'raw'nuruodo"
I thought FB wasn't Multiplatform....



source for this engine compiled on linux without a single modification:

http://qh2.qbtk.com/525-d


Linux ver:
http://qh2.qbtk.com/527-d
Logged

y smiley is 24 bit.


Genso's Junkyard:
http://rel.betterwebber.com/
Mitth'raw'nuruodo
Ancient Guru
****
Posts: 515



WWW
« Reply #18 on: May 01, 2005, 11:45:28 AM »

Hey, Ummm, I've been playing with the Threads, and can't get my proggie to work.

Could somebody post an example to the Threadcreate version uses types and passes a pointer to get multiple data in the thread?

thnx Cheesy
Logged

i]"But...it was so beautifully done"[/i]
v3cz0r
I hold this place together
*****
Posts: 924



WWW
« Reply #19 on: May 02, 2005, 02:16:20 AM »

Sure:

Code:
type t
a as integer
b as integer
end type

declare sub mythread( t as t )

dim t as t
dim threadid as integer

t.a = 1234
t.b = 5678

threadid = threadcreate( @mythread, byval @t)

threadwait( threadid )


sub mythread( t as t )

print "t.a ="; t.a
print "t.b ="; t.b

end sub
Logged

Mitth'raw'nuruodo
Ancient Guru
****
Posts: 515



WWW
« Reply #20 on: May 02, 2005, 05:07:55 PM »

thnxz very much  Cheesy
Logged

i]"But...it was so beautifully done"[/i]
Pages: 1 [2]
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.21 | SMF © 2015, Simple Machines Valid XHTML 1.0! Valid CSS!