FunctionRunner - add syntactic sugar to create shared_ptrs

-----------------------------------------------------------

                 Key: THRIFT-1444
                 URL: https://issues.apache.org/jira/browse/THRIFT-1444
             Project: Thrift
          Issue Type: Improvement
          Components: C++ - Library
            Reporter: Dave Watson
            Priority: Minor
         Attachments: 
0003-Thrift-FunctionRunner-add-syntactic-sugar-to-create-.patch

>From e1a2d69c5e178675e40aee3f01dadfebf11ca07b Mon Sep 17 00:00:00 2001
From: Mark Rabkin <[email protected]>
Date: Fri, 11 Jun 2010 21:44:13 +0000
Subject: [PATCH 03/56] FunctionRunner - add syntactic sugar to create 
shared_ptrs

Summary:

For FunctionRunner, you used to have to do a really awkward and
verbose looking thing like:

   (...)->addTask(boost::shared_ptr<FunctionRunner>(new FunctionRunner(
      ... args ... )));

Now you can do:

   (...)->addTask(FunctionRunner::create( ... args ... ));

Reviewers: simpkins,dreiss

CC: [email protected]

Test Plan: ran concurrency test



--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: 
https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

Reply via email to