You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
<methodname="GetString"description="Returns a string">
47
-
<paramname="Value"type="string"pass="return"/>
46
+
<paramname="Value"type="string"pass="return"/>
48
47
</method>
49
48
<methodname="ThreadSafetyCheck"description="Function that may crash when called from different threads at the same time"></method>
50
49
</class>
@@ -62,7 +61,7 @@ In the `threadSafeLibrary.xml` file, there are three classes defined with the sa
62
61
</class>
63
62
```
64
63
65
-
Each class contains the following methods:
64
+
Each class has the following methods:
66
65
-`GetString` which simply returns a random string.
67
66
-`ThreadSafetyCheck` which returns nothing but may crash when executed from different threads simultaneously, as no thread safety mechanism is provided in the library implementation.
68
67
@@ -112,9 +111,9 @@ int main()
112
111
}
113
112
```
114
113
115
-
Executing `testStringReturn` and `testThreadSafetyCheck` with `stringReturner` will crash because there is no thread safety mechanism enabled for this instance.
114
+
Executing `testStringReturn` and `testThreadSafetyCheck` with `stringReturner` will crash because there is no thread safety mechanism enabled for this instance.
116
115
Executing `testStringReturn` with `softStringReturner` will work as expected. However, it will crash on `testThreadSafetyCheck` because with the `soft`
117
-
value of the `threadsafetyoption` parameter, the thread safety mechanism will lock the instance on the library side only when executing functions that return strings.
116
+
value of the `threadsafetyoption` parameter, the thread safety mechanism will lock the instance on the library side only when executing functions that return strings.
118
117
Executing `testStringReturn` or `testThreadSafetyCheck` on `strictStringReturner` will work as expected in both cases because with the `strict` value of
119
118
the `threadsafetyoption`, the instance on the implementation side will be locked during each function execution.
fmt.Fprintln(os.Stdout, " -suppressinterfaces: do not generate the contents of the interfaces-folder")
579
579
fmt.Fprintln(os.Stdout, " -suppresssubcomponents: do not generate any files for subcomponents")
580
580
fmt.Fprintln(os.Stdout, " -suppressexamples: do not generate any examples")
581
+
fmt.Fprintln(os.Stdout, " -suppresscmake: do not generate CMakeLists.txt file for C++ implementation. It only takes effect if -suppressstub argument is not set.")
581
582
fmt.Fprintln(os.Stdout, " ")
582
583
fmt.Fprintln(os.Stdout, "Tutorials, info and source-code on: https://github.com/Autodesk/AutomaticComponentToolkit/ .")
0 commit comments