-
Notifications
You must be signed in to change notification settings - Fork 3k
Storage: Add required header file and namespace element instead add all #8002
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -510,7 +510,7 @@ static void nvstore_multi_thread_test() | |
if (!threads[i]) { | ||
goto mem_fail; | ||
} | ||
threads[i]->start(callback(thread_test_worker)); | ||
threads[i]->start(mbed::callback(thread_test_worker)); | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Again why not just adding using namespace mbed? There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I tried to be consistent with the code in file https://github.com/ARMmbed/mbed-os/pull/8002/files/adc255fbec2e56c9058811a590f301d4d255aeaf#diff-3c5c355089a195140705371a70b7b5d0L464 Namespace is not used for std / rtos.. There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Do you intend to bring nvstore files also into mbed namespace in the next PR? There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Block device and file system was for sure.. NVstore will have to check with the storage and other teams |
||
} | ||
|
||
wait_ms(thr_test_num_secs * 1000); | ||
|
@@ -635,7 +635,7 @@ static void nvstore_race_test() | |
} | ||
delete[] dummy; | ||
|
||
threads[i]->start(callback(race_test_worker, (void *) buffs[i])); | ||
threads[i]->start(mbed::callback(race_test_worker, (void *) buffs[i])); | ||
threads[i]->join(); | ||
} | ||
|
||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
why not adding using namespace mbed?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Consistency, also after this cleanup next PR is to add all block devices and filesystem into the mbed namespace
Uh oh!
There was an error while loading. Please reload this page.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I can live with it. Specifically, if next PR is to bring those block devices into mbed namespace.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I have that PR already in place, but cannot merge unless this cleanup is done