Search:

Type: Posts; User: Concorde

Search: Search took 0.01 seconds.

  1. Replies
    5
    Views
    985

    Thank you very much for your complete answer. So...

    Thank you very much for your complete answer. So for now I have:



    typedef atomic_bool TMutex;

    void MutexLock(TMutex *mutex)
    {
    while(atomic_flag_test_and_set(mutex));
    }
  2. Replies
    10
    Views
    1,680

    If you use a fixed size matrix you can use: ...

    If you use a fixed size matrix you can use:


    void how(int (*array)[421][70]){
    (*array)[420][69]=69;
    }
  3. Replies
    5
    Views
    985

    Thank you for the reply. The code works but I'm...

    Thank you for the reply. The code works but I'm not sure about the memory order of atomic_exchange and atomic_store that is memory_order_seq_cst. Is it correct for this kind of operations?
    With...
  4. Replies
    5
    Views
    985

    Mutex with atomics operations

    I want to build a low level mutex with atomic operations but I'm not sure if it's correct. It seems to work but I'm not sure with the memory order of atomic_exchange and atomic_store. Could you help...
  5. putting a random numbers generator in a class

    I'm learning c++ so it's a newbie question.

    I what to put a random generator in a class because it is only used by the class.
    To declare and to initialize a random numbers generator I use this...
  6. Replies
    4
    Views
    2,869

    sizeof for an extern array

    I have 2 files, one .cpp with an array of c strings


    char strings[][64]={
    "One",
    "Two",
    "Three"};


    in another .cpp file I have
  7. Replies
    5
    Views
    1,834

    Qt is not free. Does gtk have a forum for who...

    Qt is not free. Does gtk have a forum for who develop gtk applications?
  8. Replies
    5
    Views
    1,834

    Recommendations on gui library

    I need a C gui library that I can use under linux and windows with good documentation, examples and possibly a forum. What do you suggest?
Results 1 to 8 of 8