Skip to content
This repository was archived by the owner on Apr 24, 2019. It is now read-only.

Commit ddb8f7d

Browse files
authored
Merge pull request #271 from ARMmbed/thread-sync-fix
Reverting changes from PR#261
2 parents 909f2dc + c656522 commit ddb8f7d

File tree

1 file changed

+0
-4
lines changed

1 file changed

+0
-4
lines changed

source/m2mnsdlinterface.cpp

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -666,12 +666,10 @@ bool M2MNsdlInterface::process_received_data(uint8_t *data,
666666
sn_nsdl_addr_s *address)
667667
{
668668
tr_debug("M2MNsdlInterface::process_received_data( data size %d)", data_size);
669-
__mutex_claim();
670669
return (0 == sn_nsdl_process_coap(_nsdl_handle,
671670
data,
672671
data_size,
673672
address)) ? true : false;
674-
__mutex_release();
675673
}
676674

677675
void M2MNsdlInterface::stop_timers()
@@ -692,9 +690,7 @@ void M2MNsdlInterface::stop_timers()
692690
void M2MNsdlInterface::timer_expired(M2MTimerObserver::Type type)
693691
{
694692
if(M2MTimerObserver::NsdlExecution == type) {
695-
__mutex_claim();
696693
sn_nsdl_exec(_nsdl_handle, _counter_for_nsdl);
697-
__mutex_release();
698694
_counter_for_nsdl++;
699695
} else if(M2MTimerObserver::Registration == type) {
700696
tr_debug("M2MNsdlInterface::timer_expired - M2MTimerObserver::Registration - Send update registration");

0 commit comments

Comments
 (0)