Tech Off Post

Single Post Permalink

View Thread: IL to C++ compiler - Need advice on implementing context switching
  • User profile image

    Note I need 4 versions, depending on whether it is a static or instance call, and whether it passes the extra data or not

    That sounds a bit excesive. Normally there is a single thread start function and this isn't the function you pass to the Thread constructor through a delegate. This start function is a special function that takes care of initializing the thread and then calls the delegate.

    Also, the static/instance distinction is the job of the delegate, the thread start function should not be sensitive to this.