fb:porticula NoPaste
Compilierfehler mit THREADCALL (zumindest unter Linux)
Uploader: | nemored |
Datum/Zeit: | 20.02.2013 23:43:57 |
declare sub startRolling(mutex as any ptr, x as integer, y as integer, length as integer, _
duration as integer = 20, maxValue as integer = 6)
sub test
dim as any ptr mutex = mutexcreate, thread
thread = threadcall startRolling(mutex, 100, 100, 70)
threadwait thread
mutexdestroy mutex
end sub
sub startRolling(mutex as any ptr, x as integer, y as integer, length as integer, _
duration as integer = 20, maxValue as integer = 6)
mutexlock mutex
line (x, y)-step(length, length), 0, b
line (x, y)-step(length, length), 0, b
mutexunlock mutex
sleep 100, 1
end sub