Thread Previous • Date Previous • Date Next • Thread Next |
22.03.2011 13:31, Bruno Chareyre wrote:
No. It will breaks the Insertion Sort Algo, not interactions->insert/erase (the operations are thread's locked, so they are safely for parallelization.). But a parallelization of sorting is not as simple as #pramga parrallel for...Why do you think it should it break the algorithm? It is because "interactions->insert(newI)" could insert two interactions in the same list from different threads?
-- Best regards, Sergei D.
Thread Previous • Date Previous • Date Next • Thread Next |