OpenCores
URL https://opencores.org/ocsvn/plasma/plasma/trunk

Subversion Repositories plasma

[/] [plasma/] [trunk/] [kernel/] [rtos.c] - Diff between revs 422 and 425

Go to most recent revision | Show entire file | Details | Blame | View Log

Rev 422 Rev 425
Line 986... Line 986...
void OS_Job(JobFunc_t funcPtr, void *arg0, void *arg1, void *arg2)
void OS_Job(JobFunc_t funcPtr, void *arg0, void *arg1, void *arg2)
{
{
   uint32 message[4];
   uint32 message[4];
   int rc;
   int rc;
 
 
 
   if(jobQueue == NULL)
 
   {
   OS_SemaphorePend(SemaphoreLock, OS_WAIT_FOREVER);
   OS_SemaphorePend(SemaphoreLock, OS_WAIT_FOREVER);
   if(jobThread == NULL)
      if(jobQueue == NULL)
   {
   {
      jobQueue = OS_MQueueCreate("job", 100, 16);
      jobQueue = OS_MQueueCreate("job", 100, 16);
      jobThread = OS_ThreadCreate("job", JobThread, NULL, 150, 4000);
      jobThread = OS_ThreadCreate("job", JobThread, NULL, 150, 4000);
   }
   }
   OS_SemaphorePost(SemaphoreLock);
   OS_SemaphorePost(SemaphoreLock);
 
      if(jobQueue == NULL)
 
         return;
 
   }
 
 
   message[0] = (uint32)funcPtr;
   message[0] = (uint32)funcPtr;
   message[1] = (uint32)arg0;
   message[1] = (uint32)arg0;
   message[2] = (uint32)arg1;
   message[2] = (uint32)arg1;
   message[3] = (uint32)arg2;
   message[3] = (uint32)arg2;

powered by: WebSVN 2.1.0

© copyright 1999-2024 OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.