SRL Archive - OSR Help

SetTimeout


doom0791

2011-09-08 06:59:51

I've been reading about MultiThreading in scripts, and it seems the easiest way to do this (artificially) is to use the SetTimeout function; however, the only posts that I can find which discuss SetTimeout were written back when SCAR was used and Simba's SetTimeout has different parameters.

I can't find SetTimeout in the handbook either, so here's my question:

How do you use SetTimeout in Simba?

KingKong

2011-09-08 07:33:18

multithreading is not possible right now in simba, if thats what you're asking

Echo_

2011-09-08 13:22:57

SetTimeout in Simba is used for assigning a timeout function to socket connections.

doom0791

2011-09-08 16:55:36

From: KingKong
multithreading is not possible right now in simba, if thats what you're asking


Technically it wasn't possible in SCAR either. There were other ways of simulating multithreading though, such as this. Since SetTimeout is a different function now, does the form method still work?

Echo_

2011-09-08 21:50:52

From: doom0791
Technically it wasn't possible in SCAR either. There were other ways of simulating multithreading though, such as this. Since SetTimeout is a different function now, does the form method still work?


I don't see any reason why it wouldn't, there are TTimers in Simba.

Dgby714

2011-09-08 22:01:23

From: Echo_
I don't see any reason why it wouldn't, there are TTimers in Simba.


TTimer <> TThread

I think he meant real multithreading was not possible in SCAR ether
.

Echo_

2011-09-10 08:54:21

From: Dgby714
TTimer <> TThread

I think he meant real multithreading was not possible in SCAR ether
.


I know, he was asking if this would work in Simba.

doom0791

2011-09-10 12:14:12

Alright I'll give it a shot and post my results so everyone will know for sure.

Thanks for the responses!