Squashed commit of the following:

libc/semaphore:  Add nxsem_getvalue() which is identical to sem_getvalue() except that it never modifies the errno variable.  Changed all references to sem_getvalue in the OS to nxsem_getvalue().

    sched/semaphore:  Rename all internal private functions from sem_xyz to nxsem_xyz.  The sem_ prefix is (will be) reserved only for the application semaphore interfaces.

    libc/semaphore:  Add nxsem_init() which is identical to sem_init() except that it never modifies the errno variable.  Changed all references to sem_init in the OS to nxsem_init().

    sched/semaphore:  Rename sem_tickwait() to nxsem_tickwait() so that it is clear this is an internal OS function.

    sched/semaphoate:  Rename sem_reset() to nxsem_reset() so that it is clear this is an internal OS function.
This commit is contained in:
Gregory Nutt
2017-10-03 12:51:15 -06:00
parent 2997a49e51
commit 83cdb0c552
328 changed files with 895 additions and 792 deletions
+1 -1
View File
@@ -281,7 +281,7 @@ int sixlowpan_send(FAR struct net_driver_s *dev,
/* Initialize the send state structure */
sem_init(&sinfo.s_waitsem, 0, 0);
nxsem_init(&sinfo.s_waitsem, 0, 0);
(void)sem_setprotocol(&sinfo.s_waitsem, SEM_PRIO_NONE);
sinfo.s_result = -EBUSY;
+1 -1
View File
@@ -662,7 +662,7 @@ static int sixlowpan_send_packet(FAR struct socket *psock,
/* Initialize the send state structure */
sem_init(&sinfo.s_waitsem, 0, 0);
nxsem_init(&sinfo.s_waitsem, 0, 0);
(void)sem_setprotocol(&sinfo.s_waitsem, SEM_PRIO_NONE);
sinfo.s_sock = psock;