Squashed commit of the following:

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

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

    libc/semaphore and sched/semaphore:  Add nxsem_getprotocol() and nxsem_setprotocola which are identical to sem_getprotocol() and set_setprotocol() except that they never modifies the errno variable.  Changed all references to sem_setprotocol in the OS to nxsem_setprotocol().  sem_getprotocol() was not used in the OS
This commit is contained in:
Gregory Nutt
2017-10-03 15:35:24 -06:00
parent 83cdb0c552
commit 42a0796615
376 changed files with 1597 additions and 1314 deletions
+2 -2
View File
@@ -172,7 +172,7 @@ void net_unlock(void)
g_holder = NO_HOLDER;
g_count = 0;
sem_post(&g_netlock);
nxsem_post(&g_netlock);
}
else
{
@@ -215,7 +215,7 @@ int net_timedwait(sem_t *sem, FAR const struct timespec *abstime)
count = g_count;
g_holder = NO_HOLDER;
g_count = 0;
sem_post(&g_netlock);
nxsem_post(&g_netlock);
/* Now take the semaphore, waiting if so requested. */