Return-Path: Delivered-To: apmail-apr-dev-archive@www.apache.org Received: (qmail 73673 invoked from network); 5 Dec 2004 16:37:20 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur-2.apache.org with SMTP; 5 Dec 2004 16:37:20 -0000 Received: (qmail 81492 invoked by uid 500); 5 Dec 2004 16:37:19 -0000 Delivered-To: apmail-apr-dev-archive@apr.apache.org Received: (qmail 81451 invoked by uid 500); 5 Dec 2004 16:37:19 -0000 Mailing-List: contact dev-help@apr.apache.org; run by ezmlm Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: Delivered-To: mailing list dev@apr.apache.org Received: (qmail 81438 invoked by uid 99); 5 Dec 2004 16:37:18 -0000 X-ASF-Spam-Status: No, hits=0.0 required=10.0 tests= X-Spam-Check-By: apache.org Received-SPF: neutral (hermes.apache.org: local policy) Message-ID: <41B33944.3070805@starnetworks.us> Date: Sun, 05 Dec 2004 09:37:24 -0700 From: "Kevin P. Fleming" Organization: Star Networks, LLC User-Agent: Mozilla Thunderbird 0.9 (Windows/20041103) X-Accept-Language: en-us, en MIME-Version: 1.0 To: dev@apr.apache.org Subject: Newbie: use in already-threaded application? X-Enigmail-Version: 0.89.0.0 X-Enigmail-Supports: pgp-inline, pgp-mime Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked X-Spam-Rating: minotaur-2.apache.org 1.6.2 0/1000/N I'm looking into using apr for an existing application, so that I can use its hash tables, pools, rings, atomic operations, etc. The concern I have is that the application is already multi-threaded (using pthreads) and I'm not ready to re-engineer the entire codebase... I need to start small and convert pieces over. Eventually it may use apr's thread management as well, but for now it won't. The question is: can I safely use the apr functions (non-thread-related) in a multithreaded application that does not use apr's thread management?