Re: simple thread



Nomen Nescio wrote:

What is the very simplest way for procedure A to call procedure B, so that procedure B only executes after procedure A has returned?

This is a COM interface.  There is no main program available to call them serially.

why not call procedure A with in the start of procedure B?
 or if you are trying so flow control to force the
interface to take steps in the order you want them? then
try setting a flag in procedure A that indicates the
Procedure B can be called now. when the Host calls them
in the proper order procedure B can test for this flag
and if set, execute the code other wise, return an error.
 this is assuming your trying to control host apps for
proper sequence of steps.
 P.S.
   after Procedure B has executed you should clear the
flag.
etc..


-- Real Programmers Do things like this. http://webpages.charter.net/jamie_5

.



Relevant Pages

  • Re: thead sync or string problem
    ... >> probably the flow control the thread one sets the flag and thread two ... write] the second and the third loop should have picked up the new ... i think its the context switching, ...
    (comp.programming.threads)
  • Re: which book to start with...?
    ... The CPU *would* execute it, ... find that Nasm puts its name in a .comment section...). ... but i dont understand how the previous test will set the sign flag. ... Not a bad idea - I find Nasm's version of the instruction set reference useful, even though it isn't up-to-date. ...
    (alt.lang.asm)
  • Re: Determining whether an applications has thrown some error ...
    ... set some flag and check the flag whether error is thrown or not ... ... It depends on where the error happens and what type it is versus where you want to execute the code. ... If the error is an exception (as your use of the word "thrown" implies) you can put the code in a catch block and it will execute "immediately" after the error is thrown (depending on the rest of the code). ...
    (microsoft.public.dotnet.languages.csharp)
  • Re: Looping in MS SQL 2000 DTS
    ... i think this behaviour and your code is correct, only the flag does not ... 'Set oPkg = DTSGlobalVariables.Parent ... 'Do not execute task 2, ... times trough that should not really be a replacement for sleep. ...
    (microsoft.public.sqlserver.dts)
  • Re: Question regarding UNIX access() call
    ... (Solaris, e.g., has eaccess() ... and a secret "E_OK" flag which you can or in to the access flags) ... you can execute a program before you actually executed it. ...
    (comp.unix.programmer)