Skip to content

Commit

Permalink
calling shmat() on each render cycle is a bad idea
Browse files Browse the repository at this point in the history
  • Loading branch information
avilleret committed Jan 24, 2014
1 parent 65f441d commit 8727d2f
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion src/Pixes/pix_share_read.cpp
Expand Up @@ -32,7 +32,6 @@ void pix_share_read :: render(GemState *state)
#else
if(m_MapFile){
#endif /* _WIN32 */
//~ shm_addr = (unsigned char*)shmat(shm_id,NULL,0666);
if (shm_addr != (void *)-1) {
t_pixshare_header *h=(t_pixshare_header *)shm_addr;
unsigned char* data=shm_addr+sizeof(t_pixshare_header);
Expand Down

0 comments on commit 8727d2f

Please sign in to comment.