摘要 |
A mechanism for controlling method invocation and avoiding problems such as prem ature method execution before object construction and premature object destruction bef ore method completion, is provided through a protocol function table in a class library. Fo r any virtual functions declared in a class library, the thread of control invoking the functi on is re-directed through the protocol function table where it is either selectively accepted or d elayed for later acceptance pending completion of some related procedure. When used in conjunctio n with an automatic routine for locating the originating point in an operating program, th e protocol function table is particularly useful for executing concurrency in object-orient ed applications.
|