documentation/manual/directives/threadsafe.yo
raw| 1 | Syntax: bf(%thread-safe) |
| 2 | |
| 3 | Only used with polymorphic semantic values, and then only required when the |
| 4 | same parser is used in multiple threads: it ensures that each thread's |
| 5 | polymorphic code only accesses the errors counter (i.e., tt(d_nErrors_)) |
| 6 | of its own parser. |
| 7 | |
| 8 | Instead of using the tt(%thread-safe) directive the tt(--thread-safe) option |
| 9 | can also be used. |