Add pthread implementation for connectivity/common/umutex
authorCharlie Lenahan <charlie.lenahan@intel.com>
Wed, 15 Apr 2015 21:16:48 +0000 (17:16 -0400)
committerErich Keane <erich.keane@intel.com>
Wed, 22 Apr 2015 22:04:44 +0000 (22:04 +0000)
commitaf20dae23be24c201b33f8f8287b2ddd59bff3d9
treed50d11ee9226b5fce40bc7de8aa43bd8c0a99476
parent37b6344cb60ca7b2132358a6156ff90f280b505b
Add pthread implementation for connectivity/common/umutex

Implements a pthread implementation of the u_mutex , u_cond
for platforms that can't/don't want glib.

Renames u_mutex => ca_mutex , u_cond => ca_cond

Add missing unittests.

changes u_cond_wait_until() decl because old implementation
didn't accomadate for code to handle spurious wakeups properly,
and whether condition was signaled or time expired.

Change-Id: Ibd106dad494ebac3ca85aba306f1f1fe7dcc47e2
Signed-off-by: Charlie Lenahan <charlie.lenahan@intel.com>
Reviewed-on: https://gerrit.iotivity.org/gerrit/741
Tested-by: jenkins-iotivity <jenkins-iotivity@opendaylight.org>
Reviewed-by: Jon A. Cruz <jonc@osg.samsung.com>
Reviewed-by: Erich Keane <erich.keane@intel.com>
37 files changed:
resource/csdk/connectivity/common/SConscript
resource/csdk/connectivity/common/inc/camutex.h [new file with mode: 0644]
resource/csdk/connectivity/common/inc/umutex.h [deleted file]
resource/csdk/connectivity/common/src/camutex_glib.c [new file with mode: 0644]
resource/csdk/connectivity/common/src/camutex_pthread.c [new file with mode: 0644]
resource/csdk/connectivity/common/src/umutex.c [deleted file]
resource/csdk/connectivity/inc/caadapternetdtls.h
resource/csdk/connectivity/inc/caqueueingthread.h
resource/csdk/connectivity/inc/caretransmission.h
resource/csdk/connectivity/samples/linux/threadpool/main.c
resource/csdk/connectivity/src/adapter_util/caadapternetdtls.c
resource/csdk/connectivity/src/bt_edr_adapter/android/caedrclient.c
resource/csdk/connectivity/src/bt_edr_adapter/android/caedrnwmonitor.c
resource/csdk/connectivity/src/bt_edr_adapter/android/caedrserver.c
resource/csdk/connectivity/src/bt_edr_adapter/tizen/caedrclient.c
resource/csdk/connectivity/src/bt_edr_adapter/tizen/caedrserver.c
resource/csdk/connectivity/src/bt_le_adapter/android/caleclient.c
resource/csdk/connectivity/src/bt_le_adapter/caleadapter.c
resource/csdk/connectivity/src/bt_le_adapter/tizen/cableclient.c
resource/csdk/connectivity/src/bt_le_adapter/tizen/cablenwmonitor.c
resource/csdk/connectivity/src/bt_le_adapter/tizen/cableserver.c
resource/csdk/connectivity/src/camessagehandler.c
resource/csdk/connectivity/src/caqueueingthread.c
resource/csdk/connectivity/src/caretransmission.c
resource/csdk/connectivity/src/caretransmission_singlethread.c
resource/csdk/connectivity/src/ethernet_adapter/caethernetadapter.c
resource/csdk/connectivity/src/ethernet_adapter/linux/caethernetnwmonitor.c
resource/csdk/connectivity/src/ethernet_adapter/linux/caethernetserver.c
resource/csdk/connectivity/src/wifi_adapter/android/cawifinwmonitor.c
resource/csdk/connectivity/src/wifi_adapter/android/cawifiserver.c
resource/csdk/connectivity/src/wifi_adapter/cawifiadapter.c
resource/csdk/connectivity/src/wifi_adapter/linux/cawifinwmonitor.c
resource/csdk/connectivity/src/wifi_adapter/linux/cawifiserver.c
resource/csdk/connectivity/src/wifi_adapter/tizen/cawifinwmonitor.c
resource/csdk/connectivity/src/wifi_adapter/tizen/cawifiserver.c
resource/csdk/connectivity/test/SConscript
resource/csdk/connectivity/test/camutex_tests.cpp [new file with mode: 0644]