Commit 0f17c894 authored by Anders Blomdell's avatar Anders Blomdell
Browse files

Added pthtread_mutex_lock strawman.

parent 704714a6
......@@ -32,3 +32,4 @@ examples/simple/example_encoder
lib/c/test/test_labcomm_basic_type_encoding
lib/c/test/test_labcomm_generated_encoding
lib/java/se/lth/control/labcomm/WriterWrapper.class
lib/c/liblabcomm.so.1
......@@ -42,7 +42,7 @@
*
*/
#define LABCOMM_DECLARE_SIGNATURE(name) \
struct labcomm_signature name __attribute__((section("labcomm")))
struct labcomm_signature __attribute__((section("labcomm"))) name
/*
* Semi private lock declarations
......
#include "labcomm.h"
#include "labcomm_private.h"
struct labcomm_lock *labcomm_pthread_mutex_lock_new()
{
struct labcomm_lock *result;
result = malloc(sizeof(*result));
if (result == NULL) {
goto out;
}
out:
return result;
}
#ifndef _LABCOMM_PTHREAD_MUTEX_LOCK_H_
#define _LABCOMM_PTHREAD_MUTEX_LOCK_H_
#include "labcomm.h"
struct labcomm_lock *labcomm_pthread_mutex_lock_new();
#endif
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment