Merge: Parallelization phase improvement
authorJean Privat <jean@pryen.org>
Sat, 25 Apr 2015 02:18:54 +0000 (09:18 +0700)
committerJean Privat <jean@pryen.org>
Sat, 25 Apr 2015 02:18:54 +0000 (09:18 +0700)
commitaa7db728f58476c4732404cde86a54ad27205cbc
treeadbde18fb5ff41695186f307140ab801bdc107d1
parent2c4da6944dd59d8d17c47756ca42c3dd414c3d92
parentf5811e1aa28cc3d2e7a66ecc2c405999d5412b67
Merge: Parallelization phase improvement

Adds the support of methods with return value

If you use `is threaded` on a method with a return, it will instead return you a custom instance of `Thread` class on which you can use the method `join` to retrieve the return of the annotated method. `join` waits for the method to end before returning.If you want to make sure that the method has done his work before trying to retrieve it's return value, you can check it with the boolean `is_done`

Pull-Request: #1278
Reviewed-by: Alexis Laferrière <alexis.laf@xymus.net>
Reviewed-by: Jean Privat <jean@pryen.org>
src/frontend/parallelization_phase.nit