shmem: don't do locking for now

The locking seems to be broken, therefore refrain from using it.
This commit is contained in:
Julian Oes
2016-03-09 11:07:34 -08:00
parent 070e71ed55
commit 022ced3648
2 changed files with 19 additions and 3 deletions
@@ -76,6 +76,9 @@ static void *map_memory(off_t target)
int get_shmem_lock(const char *caller_file_name, int caller_line_number)
{
// TODO: don't do this for now
return 0;
unsigned char *lock = (unsigned char *)(MAP_ADDRESS + LOCK_OFFSET);
unsigned int i = 0;
@@ -101,6 +104,10 @@ int get_shmem_lock(const char *caller_file_name, int caller_line_number)
void release_shmem_lock(void)
{
// TODO: don't do this either
PX4_INFO("unlocking");
return;
unsigned char *lock = (unsigned char *)(MAP_ADDRESS + LOCK_OFFSET);
*lock = 1;