mirror of
https://github.com/Ed94/metadesk.git
synced 2026-07-30 19:30:04 +00:00
[examples] tweaks in multi threaded example; fill in the memory management example
This commit is contained in:
+16
-15
@@ -9,21 +9,14 @@ build_path=$root_path/build
|
||||
examps=$root_path/examples
|
||||
|
||||
# Setup a big list of files for a few of the examples
|
||||
big_list= $examps/intro/hello_world.mdesk
|
||||
bit_list=$big_list $examps/intro/labels.mdesk
|
||||
bit_list=$big_list $examps/intro/sets.mdesk
|
||||
bit_list=$big_list $examps/type_metadata/types.mdesk
|
||||
bit_list=$big_list $examps/type_metadata/bad_types.mdesk
|
||||
bit_list=$big_list $examps/expr/expr_intro.mdesk
|
||||
bit_list=$big_list $examps/expr/expr_c_like.mdesk
|
||||
|
||||
echo ~~~ Running Memory Management Example ~~~
|
||||
$build_path/memory_management.exe $big_list
|
||||
echo
|
||||
|
||||
echo ~~~ Running Multi-Threaded Parse Example ~~~
|
||||
$build_path/multi_threaded.exe $big_list
|
||||
echo
|
||||
big_list=()
|
||||
big_list+=("$examps/intro/hello_world.mdesk")
|
||||
big_list+=("$examps/intro/labels.mdesk")
|
||||
big_list+=("$examps/intro/sets.mdesk")
|
||||
big_list+=("$examps/type_metadata/types.mdesk")
|
||||
big_list+=("$examps/type_metadata/bad_types.mdesk")
|
||||
big_list+=("$examps/expr/expr_intro.mdesk")
|
||||
big_list+=("$examps/expr/expr_c_like.mdesk")
|
||||
|
||||
echo ~~~ Running Type Metadata Generator Example ~~~
|
||||
cd $examps/type_metadata/generated
|
||||
@@ -42,5 +35,13 @@ echo ~~~ Running C Like Expression ~~~
|
||||
$build_path/expr_c_like.exe $examps/expr/expr_c_like.mdesk
|
||||
echo
|
||||
|
||||
echo ~~~ Running Multi-Threaded Parse Example ~~~
|
||||
$build_path/multi_threaded.exe ${big_list[@]}
|
||||
echo
|
||||
|
||||
echo ~~~ Running Memory Management Example ~~~
|
||||
$build_path/memory_management.exe ${big_list[@]}
|
||||
echo
|
||||
|
||||
###### Restore Path ###########################################################
|
||||
cd $og_path
|
||||
|
||||
Reference in New Issue
Block a user