Return Styles: Pseud0ch, Terminal, Valhalla, NES, Geocities, Blue Moon. Entire thread

THINK ABOUT YOUR EYES BLINKING

Name: Anonymous 2006-09-30 0:23

YOU ARE NOW BLINKING MANUALLY

Name: Anonymous 2006-09-30 1:24

while(1) {
  blink(); }

happy?

Name: Anonymous 2006-09-30 10:43

Damn it. That's even worse than the breathing one.

Name: Anonymous 2006-09-30 12:15

>>3
that's what you get when you ask anon to program bodily functions for you...

Name: Anonymous 2006-09-30 20:22

>>2
I'm assuming I have to run that in a seperate thread.

Name: Anonymous 2006-09-30 20:59 (sage)

int blink_thread() {
 while (1) {
  blink();
 }
}
int error;
pthread_t t;
error = pthread_create(&t,NULL,blink_thread,NULL);
if(error != 0) {
 fprintf(stderr,"error creating thread (blink_thread): %s",strerror(error));
}

Name: Anonymous 2006-09-30 21:10

how about waiting until the eye gets dry instead of just blinking constantly

Name: Anonymous 2006-09-30 23:24

fuck, now i'm breathing and blinking manually and it's taking all my concentration.

>>6
thanks, but now that needs another breathing thread

Name: Anonymous 2006-10-01 0:04 (sage)

#include <eyes.h>
#include <breathing.h>
#include <4chan.h>
#include <time.h>

void blink();
int blink_thread();
int breathe_thread();

int main() {
 int error;
 pthread_t t;
 error = pthread_create(&t,NULL,breathe_thread,NULL);
 if(error != 0) {
  fprintf(stderr,"error creating thread (breathe_thread): %s",strerror(error));
 }
 error = pthread_create(&t,NULL,blink_thread,NULL);
 if(error != 0) {
  fprintf(stderr,"error creating thread (blink_thread): %s",strerror(error));
 }
 void *image;
 int time;
 while(1) {
  image=get_image_from_4chan();
  for(int i=0;i<6000;i++) {
   time=time();
   while(time==time());
  }
  post_on_4chan(image);
 }
 return 0;
}

int blink_thread() {
 while (1) {
  if(eyes_dry()) {
   blink();
  }
 }
}
int breathe_thread() {
 while(1) {
  breathe_in();
  breathe_out();
 }
}
void blink() {
 if(eyes_open()){
  close_eyes();
  open_eyes();
 }
}

Name: Anonymous 2006-10-01 0:07 (sage)

>>9
forgot to include <pthread.h> and <stdio.h>

Name: Anonymous 2006-10-01 11:02

>>9
still 100% cpu

Name: Anonymous 2006-10-01 13:04

for(int i=0;i<6000;i++) {
   time=time();
   while(time==time());

MEGA FAIL

Name: Anonymous 2006-10-01 13:07

The blink thread should sleep for a couple of seconds after a successful blink.

Name: Anonymous 2006-10-01 16:04 (sage)

>>12
YOU OBVIOUSLY FAIL TO SEE THAT THAT CODE IS IN FACT MEGA WIN

Name: Anonymous 2007-07-27 20:38 ID:u85r5ZvO

ugh

Name: Anonymous 2007-07-28 1:51 ID:7WH+01Pb

while(living) {
  blink();
}

Name: Anonymous 2009-01-14 13:32

GTFO

Name: Anonymous 2010-01-08 21:55

Think about it.

Name: Anonymous 2010-01-09 2:40

blink: while(blink()); goto blink;

Name: Anonymous 2010-01-09 6:38

>>16
while(living) {
  eyemutex.lock();
  blink();
  eyemutex.unlock();
}


I fixed your wildly unsafe code. You wouldn't want to blink while winking would you?

Name: Anonymous 2010-01-09 8:51

from __future__ import multiple_eyes

multiple_eyes.blink()

Name: ​​​​​​​​​​ 2010-10-25 17:30

Name: Sgt.Kabu㓶ᄪkiman蹯ᰎ 2012-05-28 20:17

Bringing /prog/ back to its people
All work and no play makes Jack a dull boy
All work and no play makes Jack a dull boy
All work and no play makes Jack a dull boy
All work and no play makes Jack a dull boy
All work and no play makes Jack a dull boy
All work and no play makes Jack a dull boy
All work and no play makes Jack a dull boy
All work and no play makes Jack a dull boy
All work and no play makes Jack a dull boy
All work and no play makes Jack a dull boy
All work and no play makes Jack a dull boy
All work and no play makes Jack a dull boy

Newer Posts
Don't change these.
Name: Email:
Entire Thread Thread List