Slight modification to pthread runtime chpl_add_to_task_list() is now only thread safe when called in the context of a sync statement; it does not need to be thread safe when called in the context of a cobegin or coforall statement.
Slight modification to pthread runtime
chpl_add_to_task_list() is now only thread safe when called in the context of a
sync statement; it does not need to be thread safe when called in the context of
a cobegin or coforall statement.


git-svn-id: 88467cb1fb04b8a755be7e1ee1026be4190196ef@14133 3a8e244f-b0f2-452b-bcba-4c88e055c3ca

sungeunchoi/chapel,hildeth/chapel,hildeth/chapel,CoryMcCartan/chapel,chizarlicious/chapel,sungeunchoi/chapel,hildeth/chapel,sungeunchoi/chapel,sungeunchoi/chapel,chizarlicious/chapel,sungeunchoi/chapel,chizarlicious/chapel,sungeunchoi/chapel,sungeunchoi/chapel,CoryMcCartan/chapel,hildeth/chapel,chizarlicious/chapel,CoryMcCartan/chapel,chizarlicious/chapel,CoryMcCartan/chapel,CoryMcCartan/chapel,hildeth/chapel,CoryMcCartan/chapel,hildeth/chapel,chizarlicious/chapel,chizarlicious/chapel,sungeunchoi/chapel,CoryMcCartan/chapel,hildeth/chapel