@ WorldMobile @ a passer-by the cw
SharedObjectRegister (" uo_thread ", "ExpThreadInstance")
SharedObjectGet (" ExpThreadInstance thread_one)
Thread_one. Uf_setparent (parent)
Thread_one. Post uf_event ()
An error as shown in figure,
The corresponding uo_thread class code is as follows, is nonvisualobject
forward
Global type uo_thread from nonvisualobject
End type
End forward
Global type uo_thread from nonvisualobject
End type
Global uo_thread uo_thread
The type variables
The window w_agu
End the variables
Forward as
Public subroutine uf_setparent (window w_get)
Public subroutine uf_event ()
End as
Public subroutine uf_setparent (window w_get); W_agu=w_get
End subroutine
Public subroutine uf_event (); W_agu. Triggerevent (" ue_event ")
End subroutine
On uo_thread. The create
Call super: : create
TriggerEvent (this, "constructor")
End on
On uo_thread. Destroy
TriggerEvent (this, "destructor")
Call super: : destroy
End on
Have not been able to implement multithreaded effect, a great god taught, or give me a train of thought, can write a simple demo of the better
CodePudding user response:
Multi-threaded many problems under the PB, if compiled to PBD can also make do with, compiled into a single exe, program exits, and haven't really quit, to wait for a while, system exit program to recycleCodePudding user response: