Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Threading in QB64pe (again)
#5
(05-27-2024, 02:32 PM)justsomeguy Wrote: I'm very well aware that QB64 is not designed for this. I stated this in the last paragraph. In my numerous failed attempts, I'm beginning to learn where the boundaries are. Once, I understand the boundaries, I can write my code accordingly.
Right, I'm just saying that I know how the QB64 internals work and so I know many of the limitations you're going to hit, and they're so limiting that you basically won't be able to do anything:

1. You cannot call any subs or functions from the threads
2. The threads cannot have any local variables
3. The threads cannot use any strings
4. The threads cannot redim any arrays
5. You cannot start the threads from anywhere except the main code.
6. You cannot use the bulk of the built-in commands
7. You cannot have any errors happen, no `ON KEY` entries, no timers, etc.

Basically all that leaves you able to do is interact with shared non-String variables. That's not a whole lot, and you still have some broken aspects that are not solvable.

The other big reason I'd not recommend it is that the "boundaries" are tied to specific versions of QB64. We make significant changes to the runtime in many releases which change what you can or cannot do in your threads, you're going to end up with code that works in one release and not the next.
Reply


Messages In This Thread
Threading in QB64pe (again) - by justsomeguy - 05-27-2024, 12:58 AM
RE: Threading in QB64pe (again) - by DSMan195276 - 05-27-2024, 11:53 AM
RE: Threading in QB64pe (again) - by aurel - 05-27-2024, 12:26 PM
RE: Threading in QB64pe (again) - by justsomeguy - 05-27-2024, 02:32 PM
RE: Threading in QB64pe (again) - by DSMan195276 - 05-27-2024, 04:42 PM
RE: Threading in QB64pe (again) - by a740g - 05-27-2024, 06:26 PM
RE: Threading in QB64pe (again) - by DSMan195276 - 05-27-2024, 09:55 PM
RE: Threading in QB64pe (again) - by justsomeguy - 05-28-2024, 01:41 AM
RE: Threading in QB64pe (again) - by DSMan195276 - 05-28-2024, 01:31 PM
RE: Threading in QB64pe (again) - by justsomeguy - 05-28-2024, 04:03 PM
RE: Threading in QB64pe (again) - by Kernelpanic - 05-28-2024, 06:46 PM
RE: Threading in QB64pe (again) - by DSMan195276 - 05-28-2024, 11:14 PM
RE: Threading in QB64pe (again) - by justsomeguy - 05-29-2024, 03:33 PM
RE: Threading in QB64pe (again) - by DSMan195276 - 05-30-2024, 02:13 AM
RE: Threading in QB64pe (again) - by justsomeguy - 05-30-2024, 04:33 AM
RE: Threading in QB64pe (again) - by justsomeguy - 05-31-2024, 03:00 PM
RE: Threading in QB64pe (again) - by SMcNeill - 06-02-2024, 08:14 AM
RE: Threading in QB64pe (again) - by justsomeguy - 06-02-2024, 01:11 PM
RE: Threading in QB64pe (again) - by SMcNeill - 06-02-2024, 04:01 PM



Users browsing this thread: 10 Guest(s)