Hi

Below is the conersation text which is being discussed 
on user list. But it belongs to dev-list so I am posting here.

-------------------------

 > I cannot do that.

> > In the moment when you added HB_GTI_NOTIFIERBLOCK you effectively
> > blocked the possibilities of serving window loop by non HVM thread
> > so first this feature has to be removed 

> I did not know that at all. And probably I do not know much about GT
> internals.
> Can you kindly update me how a passive thread will work and why 
> HB_GTI_NOTIFIERBLOCK is a show-stopper to achieve this? 

HB_GTI_NOTIFIERBLOCK introduces PRG code executed from windowmessage loop.
It means that we cannot create non HVM threadto create windows and process
this window messages because suchthread cannot activate PRG code. We can
quite easy create non HVM thread inside GTWVT which willcreate windows and
process all it's messages taking data to displayfor GT buffers and putting
input events to keyboard/mouse queue.We will need only simply mutex to
synchronize access to GT structure.Such worker threads resolves also
possible deadlocks which can appearin MT MS-Win GUI applications what should
greatly helps users whichare not very familiar with concurrent programing
and MS-Windows APIrestrictions.But the problem appears when we have
HB_GTI_NOTIFIERBLOCK becausenon HVM thread cannot execute PRG code. In MT
mode we can createseparate HVM thread to execute it but it will work in
different waythen current code so it will be necessary to define new
conditionshow such feature should work of course it will not work in
STapplications.

----------------------------------------




-----
                 enjoy hbIDEing...
                    Pritpal Bedi 
_a_student_of_software_analysis_&_design_
-- 
View this message in context: 
http://n2.nabble.com/GTWVT-GTWVG-HB-GTI-NOTIFIERBLOCK-HVM-Passive-Threads-tp4677567p4677567.html
Sent from the harbour-devel mailing list archive at Nabble.com.
_______________________________________________
Harbour mailing list (attachment size limit: 40KB)
[email protected]
http://lists.harbour-project.org/mailman/listinfo/harbour

Reply via email to