mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-10-20 12:43:34 +08:00
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:
+1
-1
@@ -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;'
|
||||
|
||||
Reference in New Issue
Block a user