From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from dpdk.org (dpdk.org [92.243.14.124]) by dpdk.space (Postfix) with ESMTP id 53D37A00E6 for ; Wed, 15 May 2019 11:45:56 +0200 (CEST) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id 924395B1E; Wed, 15 May 2019 11:45:55 +0200 (CEST) Received: from mail-io1-f44.google.com (mail-io1-f44.google.com [209.85.166.44]) by dpdk.org (Postfix) with ESMTP id CC06C5B1E for ; Wed, 15 May 2019 11:45:53 +0200 (CEST) Received: by mail-io1-f44.google.com with SMTP id b3so1669000iob.12 for ; Wed, 15 May 2019 02:45:53 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:from:date:message-id:subject:to:cc; bh=4/NDimIH2xfy0cFdxoK0ER/FPUzYRKa24p/0uTd7x+s=; b=a/q8S2bFBjZBlrk1DU8gwKVGh5FMKwhpy8DIlH+lQPT1PN9TsOB8Ve9iTInqRVgqiz 66yXsb5WxHFLFbZ9cIlaVzIaYur9p7aK029XlMg+oOlbIjiOLpdAIaQxEIL0ACB63U8k 7MJc/o6BHdfZW2nbIwFMKE2VtmMc7o8QUOW2LFjF+K2hQ+eYVv07XY2+uEv6novnMahw STHnBLYl6DYUFkGii4HY/X3LDaASrePrpeX+TqRkPqvV05GSthCRJQVUtnIus8jvJcX3 Er5mJBN5VbRqEuFF4Ffn/PIep0SP+uR/Jgdd8gRsWIZekO4DwzCV14YNJXhMSubHFv6u WgOw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:from:date:message-id:subject:to:cc; bh=4/NDimIH2xfy0cFdxoK0ER/FPUzYRKa24p/0uTd7x+s=; b=CLxOLCqticTlRJNZ/z0tE1sLCKzvyY3XtH4TStA+H/i913uWLoDaToZmkM/LE8UeJZ E96Vo2T7s1z/EjzvH/Cigh6NlIkfE94KvVwEmsckW+hGHZdzOCcFuDnlhhE6Wpk1FI14 oETbXpwo8uQFVF7tlVH0V4ePza5tNi8zy/GplhmD5mfzBK+5VIwvI2PiTLEuARV2DzFB xRX5FN5/tI4VyOm6sereiQ3zufbDKs7T3h3uE8Q6HFgnW7fYpk3P2K7NXjo4YSUXJvvb wcz19Nyr7gcQwOXhLlruB3Y2Z6ybJbMwOqWmvmc9jdUwhIQ5v/YbOSDidRBHrX0WlpeS bQUw== X-Gm-Message-State: APjAAAWcdKAO4dUZnuMgwlhFxDfPmM1JYhErz1sAStVMnfw1oqd2Mav0 cbWdlk4dPBTtah+jauJCGYoaRMNmZ1KfZNPh2ByonzkU X-Google-Smtp-Source: APXvYqyh4nwoedLHSW6TxJ1XW3FyQbaGSaD05wppy9hKwSK+5BQChF6hBf7jPczPA2AvROYmKVUoZ9tAN6HSwBuir4Q= X-Received: by 2002:a6b:b796:: with SMTP id h144mr14953355iof.41.1557913552993; Wed, 15 May 2019 02:45:52 -0700 (PDT) MIME-Version: 1.0 From: ikuzar RABE Date: Wed, 15 May 2019 11:45:44 +0200 Message-ID: To: users@dpdk.org Cc: halayli@gmail.com Content-Type: text/plain; charset="UTF-8" X-Content-Filtered-By: Mailman/MimeDel 2.1.15 Subject: [dpdk-users] L-threads: is it safe to call pthread_override_set(1) outside of initial_lthread ? X-BeenThere: users@dpdk.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: DPDK usage discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: users-bounces@dpdk.org Sender: "users" Hi all, I am porting legacy code (originally written for a pthread environment) to run on L-threads. As a starting point, I took the example here https://doc.dpdk.org/api/examples_2performance-thread_2pthread_shim_2main_8c-example.html I 'd like to know if I may call pthread_override_set(1) outside of initial_thread() : I intend to initialize mutex and condition variables inside my own initialization function init_app() directly called from main(). The first call I intend to make inside init_app() is pthread_override_set(1). is it Ok ? Thank you for your help, Regards, ikuzar