Author Topic: Multithreaded Programming In Vlisp  (Read 1224 times)

0 Members and 1 Guest are viewing this topic.

chlh_jd

  • Guest
Multithreaded Programming In Vlisp
« on: May 06, 2014, 10:08:27 AM »
Now  multi-core CPU  has allowed multi-threaded parallel computing, and then how to use it in VLISP,
Is some function  such as Foreach , Mapcar VLIDE use multi-threading ?

chlh_jd

  • Guest
Re: Multithreaded Programming In Vlisp
« Reply #1 on: May 06, 2014, 10:15:18 AM »
Nonsmall has used reactor to make vlisp program seems multi-threading ,http://bbs.mjtd.com/forum.php?mod=viewthread&tid=77391
It's core codes
Code: [Select]
(if (not dwg_reactor_run)(setq dwg_reactor_run(vlr-dwg-reactor nil '((:vlr-saveComplete . save)))))
(defun save(a b)
(Vlax-Invoke-Method (Vlax-Get (Vlax-Get-Acad-Object) 'ActiveDocument) 'Save )
)