Moving exit-condition: some threads may be usefull for shared-memory filling.
More suitable if condition for float values