Squashed 'third_party/rawrtc/re/' content from commit f3163ce8b

Change-Id: I6a235e6ac0f03269d951026f9d195da05c40fdab
git-subtree-dir: third_party/rawrtc/re
git-subtree-split: f3163ce8b526a13b35ef71ce4dd6f43585064d8a
diff --git a/include/re_lock.h b/include/re_lock.h
new file mode 100644
index 0000000..66cab82
--- /dev/null
+++ b/include/re_lock.h
@@ -0,0 +1,18 @@
+/**
+ * @file re_lock.h  Interface to locking functions
+ *
+ * Copyright (C) 2010 Creytiv.com
+ */
+
+
+struct lock;
+
+int  lock_alloc(struct lock **lp);
+
+void lock_read_get(struct lock *l);
+void lock_write_get(struct lock *l);
+
+int  lock_read_try(struct lock *l);
+int  lock_write_try(struct lock *l);
+
+void lock_rel(struct lock *l);