This mentality will destroy your gains in the gym. Weightlifting is all about coordination and determination, both of which are weakened by an absent mind at the gym. No matter what is happening around you, you only have 2 things to worry about: You and the weight. Nothing else should exist when you are lifting.
When you are between sets of course you can socialize, but when you are actually lifting you must focus like a laser beam on getting through the sets with good form. Also, you can lift much more weight if you are focusing hard on feeling your muscles working, and not focusing hard on the aerobics class in the other room.
You might also consider using visualization techniques. When you are squatting, for example, you can imagine yourself successfully lifting a huge boulder on your shoulders. Think of yourself as the Greek Titan Atlas holding the universe on your shoulders. Although it may sound corny, many lifters report increased gains when using techniques like these.
Article courtesy of www.mogulnethealth.com

