 Question:
I have a question about PtReqIssue. If I call it using PtReqIssue(pointer,-1) then do I
have to include task.h, or have called TaskInitTasking(), since there is no requirement
for a semaphore.
Answer: Well, it appears that
there's nothing in the executive that will prevent you from doing this, because, as you
say, it is just a semaphore. However, we would recommend that you make the call to
TaskInitTasking first. When you try to install the semaphore, if TaskInitTasking hasn't
been called yet then things will go awry (TaskOpenSema requires that TaskInitTasking has
been called). Basically, you can't do much without the taskinitTasking call, but what you
suggest above seems to be okay. You won't need task.h, but mp_ptreq.h will be required. |