QuRT: pthread API now working

The use of std::map and static initialization was an issue.

The code was refactored to not use static initialization.

Signed-off-by: Mark Charlebois <charlebm@gmail.com>
This commit is contained in:
Mark Charlebois
2015-05-13 16:21:52 -07:00
parent 7115ec3ab6
commit 884f62878d
10 changed files with 208 additions and 118 deletions
+1 -1
View File
@@ -71,7 +71,7 @@ static map<string,px4_main_t> app_map(void);
static map<string,px4_main_t> app_map(void)
{
map<string,px4_main_t> apps;
static map<string,px4_main_t> apps;
"""
for app in apps:
print '\tapps["'+app+'"] = '+app+'_main;'