News:

Masm32 SDK description, downloads and other helpful links
Message to All Guests

Main Menu

multiple threads easy todo?

Started by daydreamer, January 12, 2020, 04:51:11 AM

Previous topic - Next topic

daydreamer

Hi JJ
just curious if you have easy to use workerthreads with masmbasic
my none asm creations
https://masm32.com/board/index.php?topic=6937.msg74303#msg74303
I am an Invoker
"An Invoker is a mage who specializes in the manipulation of raw and elemental energies."
Like SIMD coding

jj2007

#1
You can use CreateThread as in any other assembly code. Remember MasmBasic is assembly with some macros.

There is one specific case where MasmBasic creates a worker thread:
include \masm32\MasmBasic\Res\MbGui.asm
GuiControl MyEdit, "edit", bcol Blue, fcol White, "Download has started", font -16:FW_SEMIBOLD
Download "http://masm32.com/board/index.php?topic=8283.0"

Event Download
  SetWin$ hMyEdit=NoTag$(wParam_) ; pointer to html text returned in wParam_, we strip the tags
GuiEnd

daydreamer

Caballero has turning tunnel demo and solution to long time to make LUT's and multistage demo could be used workerthreads,main thread draws current demo,while workerthread creates LUT's to the next demo and/or several threads work on LUT that takes much time
my none asm creations
https://masm32.com/board/index.php?topic=6937.msg74303#msg74303
I am an Invoker
"An Invoker is a mage who specializes in the manipulation of raw and elemental energies."
Like SIMD coding