2
0
mirror of https://gitlab.com/ita1024/waf.git synced 2024-11-22 01:46:15 +01:00

No more dia diagrams!

This commit is contained in:
Thomas Nagy 2014-11-16 22:30:54 +01:00
parent 1145171b62
commit fba4094bdc
No known key found for this signature in database
GPG Key ID: 67A565EDFDF90E64
6 changed files with 3 additions and 4594 deletions

View File

@ -50,7 +50,7 @@ class somename(Context):
fun = 'foo'
---------------
image::classes{PIC}["Context classes"{backend@docbook:,width=1000:},align="center"]
image::classes{PIC}["Context classes"{backend@docbook:,width=850:},align="center"]
==== Build classes
@ -62,7 +62,7 @@ The 'Parallel' object encapsulates the iteration over all tasks of the build con
The overall structure is represented on the following diagram:
image::classes_build{PIC}["Build classes"{backend@docbook:,width=1000:},align="center"]
image::classes_build{PIC}["Build classes"{backend@docbook:,width=1100:},align="center"]
=== Context objects

File diff suppressed because it is too large Load Diff

Binary file not shown.

View File

@ -9,7 +9,7 @@ This chapter provides a description of the task classes which are used during th
The build context is only used to create the tasks and to return lists of tasks that may be executed in parallel. The scheduling is delegated to a task producer which lets task consumers to execute the tasks. The task producer keeps a record of the build state such as the amount of tasks processed or the errors.
image::tasks_actors{PIC}["Actors processing the tasks"{backend@docbook:,width=150:},align="center"]
image::tasks_actors{PIC}["Actors processing the tasks"{backend@docbook:,width=250:},align="center"]
// To reduce the build time, it is interesting to take advantage of the hardware (multiple cpu cores) or of the environment (distributed builds).
The amount of consumers is determined from the number of processors, or may be set manually by using the '-j' option:

View File

@ -1,533 +0,0 @@
<?xml version="1.0" encoding="UTF-8"?>
<dia:diagram xmlns:dia="http://www.lysator.liu.se/~alla/dia/">
<dia:diagramdata>
<dia:attribute name="background">
<dia:color val="#ffffff"/>
</dia:attribute>
<dia:attribute name="pagebreak">
<dia:color val="#000099"/>
</dia:attribute>
<dia:attribute name="paper">
<dia:composite type="paper">
<dia:attribute name="name">
<dia:string>#A4#</dia:string>
</dia:attribute>
<dia:attribute name="tmargin">
<dia:real val="2.8222000598907471"/>
</dia:attribute>
<dia:attribute name="bmargin">
<dia:real val="2.8222000598907471"/>
</dia:attribute>
<dia:attribute name="lmargin">
<dia:real val="2.8222000598907471"/>
</dia:attribute>
<dia:attribute name="rmargin">
<dia:real val="2.8222000598907471"/>
</dia:attribute>
<dia:attribute name="is_portrait">
<dia:boolean val="true"/>
</dia:attribute>
<dia:attribute name="scaling">
<dia:real val="1"/>
</dia:attribute>
<dia:attribute name="fitto">
<dia:boolean val="false"/>
</dia:attribute>
</dia:composite>
</dia:attribute>
<dia:attribute name="grid">
<dia:composite type="grid">
<dia:attribute name="width_x">
<dia:real val="1"/>
</dia:attribute>
<dia:attribute name="width_y">
<dia:real val="1"/>
</dia:attribute>
<dia:attribute name="visible_x">
<dia:int val="1"/>
</dia:attribute>
<dia:attribute name="visible_y">
<dia:int val="1"/>
</dia:attribute>
<dia:composite type="color"/>
</dia:composite>
</dia:attribute>
<dia:attribute name="color">
<dia:color val="#d8e5e5"/>
</dia:attribute>
<dia:attribute name="guides">
<dia:composite type="guides">
<dia:attribute name="hguides"/>
<dia:attribute name="vguides"/>
</dia:composite>
</dia:attribute>
</dia:diagramdata>
<dia:layer name="Fondo" visible="true" active="true">
<dia:object type="UML - Object" version="0" id="O0">
<dia:attribute name="obj_pos">
<dia:point val="10.4013,1.35"/>
</dia:attribute>
<dia:attribute name="obj_bb">
<dia:rectangle val="10.3513,1.3;15.5688,3.2"/>
</dia:attribute>
<dia:attribute name="meta">
<dia:composite type="dict"/>
</dia:attribute>
<dia:attribute name="elem_corner">
<dia:point val="10.4013,1.35"/>
</dia:attribute>
<dia:attribute name="elem_width">
<dia:real val="5.1174999999999997"/>
</dia:attribute>
<dia:attribute name="elem_height">
<dia:real val="1.8000000000000003"/>
</dia:attribute>
<dia:attribute name="line_width">
<dia:real val="0.10000000149011612"/>
</dia:attribute>
<dia:attribute name="text_colour">
<dia:color val="#000000"/>
</dia:attribute>
<dia:attribute name="line_colour">
<dia:color val="#000000"/>
</dia:attribute>
<dia:attribute name="fill_colour">
<dia:color val="#90ee90"/>
</dia:attribute>
<dia:attribute name="text">
<dia:composite type="text">
<dia:attribute name="string">
<dia:string>#BuildContext#</dia:string>
</dia:attribute>
<dia:attribute name="font">
<dia:font family="sans" style="0" name="Helvetica"/>
</dia:attribute>
<dia:attribute name="height">
<dia:real val="0.80000000000000004"/>
</dia:attribute>
<dia:attribute name="pos">
<dia:point val="12.9601,2.445"/>
</dia:attribute>
<dia:attribute name="color">
<dia:color val="#000000"/>
</dia:attribute>
<dia:attribute name="alignment">
<dia:enum val="1"/>
</dia:attribute>
</dia:composite>
</dia:attribute>
<dia:attribute name="stereotype">
<dia:string>##</dia:string>
</dia:attribute>
<dia:attribute name="exstate">
<dia:string>##</dia:string>
</dia:attribute>
<dia:attribute name="attrib">
<dia:composite type="text">
<dia:attribute name="string">
<dia:string>##</dia:string>
</dia:attribute>
<dia:attribute name="font">
<dia:font family="sans" style="0" name="Helvetica"/>
</dia:attribute>
<dia:attribute name="height">
<dia:real val="0.80000000000000004"/>
</dia:attribute>
<dia:attribute name="pos">
<dia:point val="0,0"/>
</dia:attribute>
<dia:attribute name="color">
<dia:color val="#000000"/>
</dia:attribute>
<dia:attribute name="alignment">
<dia:enum val="0"/>
</dia:attribute>
</dia:composite>
</dia:attribute>
<dia:attribute name="is_active">
<dia:boolean val="false"/>
</dia:attribute>
<dia:attribute name="show_attribs">
<dia:boolean val="false"/>
</dia:attribute>
<dia:attribute name="multiple">
<dia:boolean val="false"/>
</dia:attribute>
</dia:object>
<dia:object type="UML - Object" version="0" id="O1">
<dia:attribute name="obj_pos">
<dia:point val="10.25,5.4"/>
</dia:attribute>
<dia:attribute name="obj_bb">
<dia:rectangle val="10.2,5.35;15.72,7.25"/>
</dia:attribute>
<dia:attribute name="meta">
<dia:composite type="dict"/>
</dia:attribute>
<dia:attribute name="elem_corner">
<dia:point val="10.25,5.4"/>
</dia:attribute>
<dia:attribute name="elem_width">
<dia:real val="5.4199999999999999"/>
</dia:attribute>
<dia:attribute name="elem_height">
<dia:real val="1.7999999999999998"/>
</dia:attribute>
<dia:attribute name="line_width">
<dia:real val="0.10000000149011612"/>
</dia:attribute>
<dia:attribute name="text_colour">
<dia:color val="#000000"/>
</dia:attribute>
<dia:attribute name="line_colour">
<dia:color val="#000000"/>
</dia:attribute>
<dia:attribute name="fill_colour">
<dia:color val="#90ee90"/>
</dia:attribute>
<dia:attribute name="text">
<dia:composite type="text">
<dia:attribute name="string">
<dia:string>#Task Producer#</dia:string>
</dia:attribute>
<dia:attribute name="font">
<dia:font family="sans" style="0" name="Helvetica"/>
</dia:attribute>
<dia:attribute name="height">
<dia:real val="0.80000000000000004"/>
</dia:attribute>
<dia:attribute name="pos">
<dia:point val="12.96,6.495"/>
</dia:attribute>
<dia:attribute name="color">
<dia:color val="#000000"/>
</dia:attribute>
<dia:attribute name="alignment">
<dia:enum val="1"/>
</dia:attribute>
</dia:composite>
</dia:attribute>
<dia:attribute name="stereotype">
<dia:string>##</dia:string>
</dia:attribute>
<dia:attribute name="exstate">
<dia:string>##</dia:string>
</dia:attribute>
<dia:attribute name="attrib">
<dia:composite type="text">
<dia:attribute name="string">
<dia:string>##</dia:string>
</dia:attribute>
<dia:attribute name="font">
<dia:font family="sans" style="0" name="Helvetica"/>
</dia:attribute>
<dia:attribute name="height">
<dia:real val="0.80000000000000004"/>
</dia:attribute>
<dia:attribute name="pos">
<dia:point val="0,0"/>
</dia:attribute>
<dia:attribute name="color">
<dia:color val="#000000"/>
</dia:attribute>
<dia:attribute name="alignment">
<dia:enum val="0"/>
</dia:attribute>
</dia:composite>
</dia:attribute>
<dia:attribute name="is_active">
<dia:boolean val="false"/>
</dia:attribute>
<dia:attribute name="show_attribs">
<dia:boolean val="false"/>
</dia:attribute>
<dia:attribute name="multiple">
<dia:boolean val="false"/>
</dia:attribute>
</dia:object>
<dia:object type="UML - Object" version="0" id="O2">
<dia:attribute name="obj_pos">
<dia:point val="6.2,9.15"/>
</dia:attribute>
<dia:attribute name="obj_bb">
<dia:rectangle val="6.15,9.1;12,11"/>
</dia:attribute>
<dia:attribute name="meta">
<dia:composite type="dict"/>
</dia:attribute>
<dia:attribute name="elem_corner">
<dia:point val="6.2,9.15"/>
</dia:attribute>
<dia:attribute name="elem_width">
<dia:real val="5.75"/>
</dia:attribute>
<dia:attribute name="elem_height">
<dia:real val="1.8000000000000007"/>
</dia:attribute>
<dia:attribute name="line_width">
<dia:real val="0.10000000149011612"/>
</dia:attribute>
<dia:attribute name="text_colour">
<dia:color val="#000000"/>
</dia:attribute>
<dia:attribute name="line_colour">
<dia:color val="#000000"/>
</dia:attribute>
<dia:attribute name="fill_colour">
<dia:color val="#90ee90"/>
</dia:attribute>
<dia:attribute name="text">
<dia:composite type="text">
<dia:attribute name="string">
<dia:string>#Task consumer#</dia:string>
</dia:attribute>
<dia:attribute name="font">
<dia:font family="sans" style="0" name="Helvetica"/>
</dia:attribute>
<dia:attribute name="height">
<dia:real val="0.80000000000000004"/>
</dia:attribute>
<dia:attribute name="pos">
<dia:point val="9.075,10.245"/>
</dia:attribute>
<dia:attribute name="color">
<dia:color val="#000000"/>
</dia:attribute>
<dia:attribute name="alignment">
<dia:enum val="1"/>
</dia:attribute>
</dia:composite>
</dia:attribute>
<dia:attribute name="stereotype">
<dia:string>##</dia:string>
</dia:attribute>
<dia:attribute name="exstate">
<dia:string>##</dia:string>
</dia:attribute>
<dia:attribute name="attrib">
<dia:composite type="text">
<dia:attribute name="string">
<dia:string>##</dia:string>
</dia:attribute>
<dia:attribute name="font">
<dia:font family="sans" style="0" name="Helvetica"/>
</dia:attribute>
<dia:attribute name="height">
<dia:real val="0.80000000000000004"/>
</dia:attribute>
<dia:attribute name="pos">
<dia:point val="0,0"/>
</dia:attribute>
<dia:attribute name="color">
<dia:color val="#000000"/>
</dia:attribute>
<dia:attribute name="alignment">
<dia:enum val="0"/>
</dia:attribute>
</dia:composite>
</dia:attribute>
<dia:attribute name="is_active">
<dia:boolean val="false"/>
</dia:attribute>
<dia:attribute name="show_attribs">
<dia:boolean val="false"/>
</dia:attribute>
<dia:attribute name="multiple">
<dia:boolean val="false"/>
</dia:attribute>
</dia:object>
<dia:object type="UML - Message" version="0" id="O3">
<dia:attribute name="obj_pos">
<dia:point val="10.0586,9.1006"/>
</dia:attribute>
<dia:attribute name="obj_bb">
<dia:rectangle val="6.115,6.92688;12.2902,9.1713"/>
</dia:attribute>
<dia:attribute name="meta">
<dia:composite type="dict"/>
</dia:attribute>
<dia:attribute name="conn_endpoints">
<dia:point val="10.0586,9.1006"/>
<dia:point val="11.9764,7.2494"/>
</dia:attribute>
<dia:attribute name="text_colour">
<dia:color val="#000000"/>
</dia:attribute>
<dia:attribute name="line_colour">
<dia:color val="#000000"/>
</dia:attribute>
<dia:attribute name="text">
<dia:string>#Process a task#</dia:string>
</dia:attribute>
<dia:attribute name="type">
<dia:enum val="0"/>
</dia:attribute>
<dia:attribute name="text_pos">
<dia:point val="8.4,8.25"/>
</dia:attribute>
<dia:connections>
<dia:connection handle="0" to="O2" connection="8"/>
<dia:connection handle="1" to="O1" connection="8"/>
</dia:connections>
</dia:object>
<dia:object type="UML - Message" version="0" id="O4">
<dia:attribute name="obj_pos">
<dia:point val="12.96,5.4"/>
</dia:attribute>
<dia:attribute name="obj_bb">
<dia:rectangle val="12.56,3.1;19.9131,5.45"/>
</dia:attribute>
<dia:attribute name="meta">
<dia:composite type="dict"/>
</dia:attribute>
<dia:attribute name="conn_endpoints">
<dia:point val="12.96,5.4"/>
<dia:point val="12.96,3.15"/>
</dia:attribute>
<dia:attribute name="text_colour">
<dia:color val="#000000"/>
</dia:attribute>
<dia:attribute name="line_colour">
<dia:color val="#000000"/>
</dia:attribute>
<dia:attribute name="text">
<dia:string>#Get tasks to process#</dia:string>
</dia:attribute>
<dia:attribute name="type">
<dia:enum val="0"/>
</dia:attribute>
<dia:attribute name="text_pos">
<dia:point val="16.6493,4.55"/>
</dia:attribute>
<dia:connections>
<dia:connection handle="0" to="O1" connection="1"/>
<dia:connection handle="1" to="O0" connection="6"/>
</dia:connections>
</dia:object>
<dia:object type="UML - Object" version="0" id="O5">
<dia:attribute name="obj_pos">
<dia:point val="14.1,9.15"/>
</dia:attribute>
<dia:attribute name="obj_bb">
<dia:rectangle val="14.05,9.1;20.5075,11"/>
</dia:attribute>
<dia:attribute name="meta">
<dia:composite type="dict"/>
</dia:attribute>
<dia:attribute name="elem_corner">
<dia:point val="14.1,9.15"/>
</dia:attribute>
<dia:attribute name="elem_width">
<dia:real val="6.3574999999999999"/>
</dia:attribute>
<dia:attribute name="elem_height">
<dia:real val="1.8000000000000007"/>
</dia:attribute>
<dia:attribute name="line_width">
<dia:real val="0.10000000149011612"/>
</dia:attribute>
<dia:attribute name="text_colour">
<dia:color val="#000000"/>
</dia:attribute>
<dia:attribute name="line_colour">
<dia:color val="#000000"/>
</dia:attribute>
<dia:attribute name="fill_colour">
<dia:color val="#90ee90"/>
</dia:attribute>
<dia:attribute name="text">
<dia:composite type="text">
<dia:attribute name="string">
<dia:string>#Task consumer n#</dia:string>
</dia:attribute>
<dia:attribute name="font">
<dia:font family="sans" style="0" name="Helvetica"/>
</dia:attribute>
<dia:attribute name="height">
<dia:real val="0.80000000000000004"/>
</dia:attribute>
<dia:attribute name="pos">
<dia:point val="17.2787,10.245"/>
</dia:attribute>
<dia:attribute name="color">
<dia:color val="#000000"/>
</dia:attribute>
<dia:attribute name="alignment">
<dia:enum val="1"/>
</dia:attribute>
</dia:composite>
</dia:attribute>
<dia:attribute name="stereotype">
<dia:string>##</dia:string>
</dia:attribute>
<dia:attribute name="exstate">
<dia:string>##</dia:string>
</dia:attribute>
<dia:attribute name="attrib">
<dia:composite type="text">
<dia:attribute name="string">
<dia:string>##</dia:string>
</dia:attribute>
<dia:attribute name="font">
<dia:font family="sans" style="0" name="Helvetica"/>
</dia:attribute>
<dia:attribute name="height">
<dia:real val="0.80000000000000004"/>
</dia:attribute>
<dia:attribute name="pos">
<dia:point val="0,0"/>
</dia:attribute>
<dia:attribute name="color">
<dia:color val="#000000"/>
</dia:attribute>
<dia:attribute name="alignment">
<dia:enum val="0"/>
</dia:attribute>
</dia:composite>
</dia:attribute>
<dia:attribute name="is_active">
<dia:boolean val="false"/>
</dia:attribute>
<dia:attribute name="show_attribs">
<dia:boolean val="false"/>
</dia:attribute>
<dia:attribute name="multiple">
<dia:boolean val="false"/>
</dia:attribute>
</dia:object>
<dia:object type="UML - Message" version="0" id="O6">
<dia:attribute name="obj_pos">
<dia:point val="16.1854,9.1006"/>
</dia:attribute>
<dia:attribute name="obj_bb">
<dia:rectangle val="13.7534,6.91459;20.135,9.17113"/>
</dia:attribute>
<dia:attribute name="meta">
<dia:composite type="dict"/>
</dia:attribute>
<dia:attribute name="conn_endpoints">
<dia:point val="16.1854,9.1006"/>
<dia:point val="14.0534,7.2494"/>
</dia:attribute>
<dia:attribute name="text_colour">
<dia:color val="#000000"/>
</dia:attribute>
<dia:attribute name="line_colour">
<dia:color val="#000000"/>
</dia:attribute>
<dia:attribute name="text">
<dia:string>#Process a task#</dia:string>
</dia:attribute>
<dia:attribute name="type">
<dia:enum val="0"/>
</dia:attribute>
<dia:attribute name="text_pos">
<dia:point val="17.85,8.2"/>
</dia:attribute>
<dia:connections>
<dia:connection handle="0" to="O5" connection="8"/>
<dia:connection handle="1" to="O1" connection="8"/>
</dia:connections>
</dia:object>
</dia:layer>
</dia:diagram>

BIN
docs/book/tasks_actors.semd Normal file

Binary file not shown.