Jump to content

PMThread: Difference between revisions

From EDM2
Ak120 (talk | contribs)
m Ak120 moved page OS2 API:PM++:PMThread to PMThread
Ak120 (talk | contribs)
mNo edit summary
 
Line 1: Line 1:
==Description==
==Description==
The PMThread class automatically creates a new thread in the PM++ application. Using a clever :) hack the thread procedure is a virtual member of PMThread; this makes it possible to add thread instance data by simply deriving a subclass from PMThread and adding data fields. The main procedure of the derived class can access to those data members just as if it were a normal member of the derived class. I added also support for the non-standard thread instance data functions supplied by the emx library, and a series of functions to change the thread's settings.


The PMThread class automatically  creates  a  new thread in the PM++ application.  Using a clever :) hack the thread procedure is  a  virtual member  of  PMThread; this makes it possible to add thread instance data by simply deriving a subclass from PMThread and adding data fields.  The main procedure of the  derived  class  can  access to those data members just as if it were a normal member of the derived class.  I  added  also support  for the non-standard thread instance data functions supplied by the emx library,  and  a  series  of  functions  to  change the thread's settings.
[[Category:PM++]]
 
[[Category:The OS/2 API Project]]

Latest revision as of 09:40, 14 February 2017

Description

The PMThread class automatically creates a new thread in the PM++ application. Using a clever :) hack the thread procedure is a virtual member of PMThread; this makes it possible to add thread instance data by simply deriving a subclass from PMThread and adding data fields. The main procedure of the derived class can access to those data members just as if it were a normal member of the derived class. I added also support for the non-standard thread instance data functions supplied by the emx library, and a series of functions to change the thread's settings.