remove debug printing from future
This commit is contained in:
@@ -1,4 +1,3 @@
|
|||||||
import io:*
|
|
||||||
|
|
||||||
__if_comp__ __C__ simple_passthrough(::"-pthread") """
|
__if_comp__ __C__ simple_passthrough(::"-pthread") """
|
||||||
#include <pthread.h>
|
#include <pthread.h>
|
||||||
@@ -53,7 +52,6 @@ obj future<T> {
|
|||||||
psy = in
|
psy = in
|
||||||
wrapper = fun() : void{
|
wrapper = fun() : void{
|
||||||
result = psy()
|
result = psy()
|
||||||
println(status)
|
|
||||||
pthread_exit()
|
pthread_exit()
|
||||||
}
|
}
|
||||||
return this
|
return this
|
||||||
@@ -69,9 +67,6 @@ obj future<T> {
|
|||||||
|
|
||||||
fun finish() : T {
|
fun finish() : T {
|
||||||
pthread_join(&thread)
|
pthread_join(&thread)
|
||||||
print("FINISHED THREAD ")
|
|
||||||
print(result)
|
|
||||||
print("\n")
|
|
||||||
return result
|
return result
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user