Return-Path: X-Original-To: apmail-giraph-dev-archive@www.apache.org Delivered-To: apmail-giraph-dev-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 209D6E62F for ; Fri, 8 Feb 2013 01:55:14 +0000 (UTC) Received: (qmail 22614 invoked by uid 500); 8 Feb 2013 01:55:13 -0000 Delivered-To: apmail-giraph-dev-archive@giraph.apache.org Received: (qmail 22537 invoked by uid 500); 8 Feb 2013 01:55:12 -0000 Mailing-List: contact dev-help@giraph.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@giraph.apache.org Delivered-To: mailing list dev@giraph.apache.org Received: (qmail 22449 invoked by uid 500); 8 Feb 2013 01:55:12 -0000 Delivered-To: apmail-incubator-giraph-dev@incubator.apache.org Received: (qmail 22438 invoked by uid 99); 8 Feb 2013 01:55:12 -0000 Received: from arcas.apache.org (HELO arcas.apache.org) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 08 Feb 2013 01:55:12 +0000 Date: Fri, 8 Feb 2013 01:55:12 +0000 (UTC) From: "Maja Kabiljo (JIRA)" To: giraph-dev@incubator.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Updated] (GIRAPH-504) Create PartitionContext MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 [ https://issues.apache.org/jira/browse/GIRAPH-504?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Maja Kabiljo updated GIRAPH-504: -------------------------------- Attachment: GIRAPH-504.diff Ok, here is my second take on this. PartitionContext, looks much better now I think. I didn't even put WorkerContext as a field in PartitionContext, but passed it in as argument in pre/postSuperstep, so user wouldn't get an idea to use it elsewhere :-) Removing access to WorkerContext from compute (if we agree to do it) I'd leave for another patch since a lot of examples would need to be changed. > Create PartitionContext > ----------------------- > > Key: GIRAPH-504 > URL: https://issues.apache.org/jira/browse/GIRAPH-504 > Project: Giraph > Issue Type: New Feature > Reporter: Maja Kabiljo > Assignee: Maja Kabiljo > Attachments: GIRAPH-504.diff, GIRAPH-504.diff > > > Right now we have WorkerContext which is accessible from vertex.compute, but it's not thread safe - usually if we want to use it with multithreaded computation we have to use synchronization. Instead we can create a ComputeContext, which is going to have one instance per compute thread. -- This message is automatically generated by JIRA. If you think it was sent incorrectly, please contact your JIRA administrators For more information on JIRA, see: http://www.atlassian.com/software/jira