Game Coding Complete Community

This community site is a companion to Game Coding Complete, written by Mike "MrMike" McShaffry and David "Rez" Graham. Programmers of all levels are invited to participate.

Unread Threads

Topic Replies Last Reply

User Avatar

Deadlock example in the book

joeh - - Book Forum (4th Ed.)
3
User Avatar

mholley519

User Avatar

Loading mesh materials and textures

jacktc - - 3D Programming
0

User Avatar

Help passing pointers to data through events - shared_ptr vs weak_ptr

jacktc - - Win32 Programming
2
User Avatar

Trinak

Recent Activities

  • User Avatar

    mholley519 -

    Replied to the thread Deadlock example in the book.

    Post
    Well you need to read it in the context of the entire section. Quote: “​If you find yourself at a table with four other people and only five chopsticks between you, simply agree (just you) to pick up the left chopstick first and the right chopstick…
  • User Avatar

    joeh -

    Replied to the thread Deadlock example in the book.

    Post
    mholley519, What you said is already said in the book: if odd and even numbered philosophers having different picking orders, that would avoid deadlock. What confuses me is the quoted text. It doesn't say anything about odd and even numbered people. In…
  • User Avatar

    mholley519 -

    Replied to the thread Deadlock example in the book.

    Post
    The key here is that not everyone is agreeing to pick up the left chopstick first, only the even numbered diners, the odd numbered diners are picking up the right chopstick first. To simplify this situation lets break it down between 2 people and 3…
  • User Avatar

    joeh -

    Posted a new thread: Deadlock example in the book

    Thread
    The book talks about the dinning philosophers problem at page 703-704. The book mentions that deadlock would happen if every philosopher grabbed his left chopstick and hold onto it cause nobody can have his right chopstick. Here is a quote from page…
  • User Avatar

    jacktc -

    Posted a new thread: Loading mesh materials and textures

    Thread
    Hello, I'm in the process of improving the D3DMeshNode9 from GCC4. It currently only uses the mesh portion of a DirectX .x file. I'm using Frank Luna's book (Introduction to 3D Game Programming With DirectX 9.0c) as a guide. My plan is to load the…
  • User Avatar

    Trinak -

    Replied to the thread Help passing pointers to data through events - shared_ptr vs weak_ptr.

    Post
    I'm glad you figured it out (and posted the correction).
  • User Avatar

    jacktc -

    Replied to the thread Help passing pointers to data through events - shared_ptr vs weak_ptr.

    Post
    Answering my own question: It was a noob mistake. Don't do the same thing I did. shared_ptr's come from the heap and not the stack. I declared IHand* ihand = 0 inside a member function. X/
  • User Avatar

    admin -

    Replied to the thread What has MrMike been doing???.

    Post
    Ok here's a little more - well maybe a LOT more about Crowfall! http://bit.ly/1JlWL9S Crowfall_CaravanBanner.jpg
  • User Avatar

    Wolkec -

    Replied to the thread Error running TeapotWars.

    Post
    I just upgraded it to vs2013 and got it to build... It needs the old effects lib that comes with dxtools, and you have to set it to singlethreaded debug dll, the new effects library has changed the D3DX11CreateEffectFromMemory... Tried running it with…
  • User Avatar

    Trinak -

    Replied to the thread Jumping into speciality vs any open position.

    Post
    That's what I thought, thanks for the input. His title was "Hiring Manager".