Discussion Board

Results 1 to 2 of 2
  1. #1
    Regular Contributor
    Join Date
    Sep 2009

    Question regarding library common resource

    Hello everyone,

    I have two apps which use a static library. In this library a common resource is referred. My question is how can I synchronize the access to this resource so they can be thread safe ? By using RMutex probably. But when my seconds process try to enter the critical section, KERN-EXEC 0 is thrown. How can I find the mutex already created ?

    Last edited by digitalsol; 2010-12-16 at 16:33.

  2. #2
    Nokia Developer Moderator
    Join Date
    Feb 2006
    Oslo, Norway

    Re: Question regarding library common resource

    Are you using RMutex::Create/OpenGlobal, and checking the result codes? Otherwise TFindMutex can check if a mutex exists or not, but it is easier to simply open it, and check if you get a KErrNotFound (or Create+KErrAlreadyExists).

Similar Threads

  1. How to add Resource in Static Library?
    By pranay_preet in forum Open C/C++
    Replies: 1
    Last Post: 2010-07-14, 13:32
  2. Replies: 5
    Last Post: 2009-07-27, 09:27
  3. Common python question about lists
    By andipro in forum Symbian
    Replies: 6
    Last Post: 2009-04-18, 13:30
  4. Setting page. Resource question
    By VEIKKO99 in forum Symbian User Interface
    Replies: 0
    Last Post: 2002-09-04, 09:15
  5. Replies: 0
    Last Post: 2002-07-01, 12:51

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts