about summary refs log tree commit diff stats
path: root/dwm.1
Commit message (Expand)AuthorAgeFilesLines
* cleaned up codearg@10ksloc.org2006-07-201-1/+1
* fixed version in man pagearg@10ksloc.org2006-07-201-1/+1
* added heretag command which allows to tag a client of a foreign tag with curr...Anselm R. Garbe2006-07-181-0/+8
* patched dwmAnselm R. Garbe2006-07-171-1/+1
* slight change to dwm.1Anselm R. Garbe2006-07-171-1/+2
* simplified man pageAnselm R. Garbe2006-07-161-35/+28
* several additions in mouse handling ;)Anselm R. Garbe2006-07-161-43/+20
* fixed XSync handling and finished man pageAnselm R. Garbe2006-07-151-4/+54
* prep 0.1 0.1Anselm R. Garbe2006-07-141-1/+1
* implemented dwm reading status text from stdin Anselm R. Garbe2006-07-141-1/+15
* made barclick to select the specific tagAnselm R. Garbe2006-07-141-0/+3
* continued with man pageAnselm R. Garbe2006-07-141-0/+34
* continued with man pageAnselm R. Garbe2006-07-141-0/+33
* another changeAnselm R. Garbe2006-07-131-1/+1
* updated man pageAnselm R. Garbe2006-07-131-7/+5
* added logo+descriptionAnselm R. Garbe2006-07-131-0/+16
K. Agaram <vc@akkartik.com> 2016-01-19 23:18:03 -0800 2576 - distinguish allocated addresses from others' href='/akkartik/mu/commit/channel.mu?h=hlt&id=455fbac64f101b05f7eaca89b84470569e4df3fd'>455fbac6 ^
ce87c19e ^
b96af395 ^
f192d655 ^
b96af395 ^
f192d655 ^
1ead3562 ^
b96af395 ^
77d5b5d6 ^
104854ca ^
b96af395 ^

455fbac6 ^
b96af395 ^
d135851e ^
b96af395 ^

f192d655 ^
b96af395 ^
f192d655 ^
1ead3562 ^
77d5b5d6 ^
455fbac6 ^
b96af395 ^
83d8299d ^

ce87c19e ^

b96af395 ^
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43

                                                                
                                                                         
                                          
             
                  
         
                       
   

                                     
                                                  
                             
 
                                                
                 
        
   
 
 
                                                                         
                                             
             
                  

                                      
                                                         
                                                  
                                       

        
   
 
 
          
             
                                              
                                                                  

                                                 

                           
 
# example program: communicating between routines using channels

def producer chan:address:shared:channel -> chan:address:shared:channel [
  # produce characters 1 to 5 on a channel
  local-scope
  load-ingredients
  # n = 0
  n:character <- copy 0
  {
    done?:boolean <- lesser-than n, 5
    break-unless done?
    # other threads might get between these prints
    $print [produce: ], n, [ 
]
    chan:address:shared:channel <- write chan, n
    n <- add n, 1
    loop
  }
]

def consumer chan:address:shared:channel -> chan:address:shared:channel [
  # consume and print integers from a channel
  local-scope
  load-ingredients
  {
    # read an integer from the channel
    n:character, chan:address:shared:channel <- read chan
    # other threads might get between these prints
    $print [consume: ], n:character, [ 
]
    loop
  }
]

def main [
  local-scope
  chan:address:shared:channel <- new-channel 3
  # create two background 'routines' that communicate by a channel
  routine1:number <- start-running producer, chan
  routine2:number <- start-running consumer, chan
  wait-for-routine routine1
  wait-for-routine routine2
]