Search:

Type: Posts; User: wassat676

Search: Search took 0.00 seconds.

  1. I stand corrected. thanks.

    I stand corrected. thanks.
  2. Thats a totally legal move, and it has nothing to...

    Thats a totally legal move, and it has nothing to do with my problem.
  3. I know, and i did.

    I know, and i did.
  4. object array problems (some openGL but its pretty irrelevant to the problem)

    I have this project im working on. It will eventually be an implementation of Dijkstra's shortest path algorithm using some c++ classes and openGL to visualize it.

    My problem is creating a data...
  5. Oh, wassat676, heres your problem! You should...

    Oh, wassat676, heres your problem!

    You should add another mutex so that puts/gets aren't conflicting.

    Thanks me.

    EDIT: nvm, now its all deterministic and stuff. I still need help.
  6. ok I figured something out at least. I should...

    ok I figured something out at least. I should have been using strlen in the Put method. Now it will print, almost in the correct order, but it still deadlocks at some point. Heres the new code:

    ...
  7. Circular character buffer with pthreads/mutex/cond deadlock help!

    I am implementing a circular character buffer for an assignment, the requirements are pretty strict so I can't change the logic from what it is now too much. Unfortunately, this code deadlocks right...
  8. Replies
    2
    Views
    1,229

    Didn't see that post, it is the same class tho im...

    Didn't see that post, it is the same class tho im sure of it.

    What return values are you referring to that I have not already used an assert on?

    The program works but the threads aren't...
  9. Replies
    2
    Views
    1,229

    pthreads + "private" semaphores issue

    Posted this over on stack overflow, but they were no help.

    This is an assignment i'm working on, it must use semaphores, not mutex.


    #include <stdio.h>
    #include <pthread.h>
    #include...
  10. Replies
    4
    Views
    7,861

    ok i see whats happening, now my question...

    ok i see whats happening, now my question becomes, "how do i detect the end of the file without calling fgets??"
  11. Replies
    4
    Views
    7,861

    fgets skipping lines

    Hello all. Im having and issue when reading from a .txt file. Some of the lines in it are being skipped by the while loop and I have no idea why. Any insight is greatly appreciated.


    #include...
Results 1 to 11 of 11