From f4d768ec56185e9f0f03b56ff3448b4889c6067f Mon Sep 17 00:00:00 2001 From: "bernard.xiong@gmail.com" Date: Mon, 22 Oct 2012 23:27:04 +0000 Subject: [PATCH] Add mutex lock in memheap object. git-svn-id: https://rt-thread.googlecode.com/svn/trunk@2366 bbd45198-f89e-11dd-88c7-29a3b14d5316 --- include/rtdef.h | 2 ++ 1 file changed, 2 insertions(+) diff --git a/include/rtdef.h b/include/rtdef.h index d548a191f1..edfbbd8545 100644 --- a/include/rtdef.h +++ b/include/rtdef.h @@ -595,6 +595,8 @@ struct rt_memheap struct rt_memheap_item *free_list; /**< free block list */ struct rt_memheap_item free_header; /**< free block list header */ + + struct rt_mutex lock; /**< mutex lock */ }; /**