The MASM Forum

Projects => MasmBasic & the RichMasm IDE => Topic started by: daydreamer on January 12, 2020, 04:51:11 AM

Title: multiple threads easy todo?
Post by: daydreamer on January 12, 2020, 04:51:11 AM
Hi JJ
just curious if you have easy to use workerthreads with masmbasic
Title: Re: multiple threads easy todo?
Post by: jj2007 on January 12, 2020, 06:56:13 AM
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
Title: Re: multiple threads easy todo?
Post by: daydreamer on January 12, 2020, 11:09:54 PM
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